joyce8/EMBER2024-capa huggingface dataset:
Function at 0x60c1dc
Capabilities:
Parse pe header

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

Function at 0x60f1f1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0060b930
mov eax, dword [0x6235e0]
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.00614236
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x60f233
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x60f38f
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00615720
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 + 0x624a68]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0061554b
mov ecx, dword [esi*4 + 0x624a68]
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 0x60f388
cmp eax, dword [ecx + edi + 0x24]
jne 0x60f388
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 0x60f388
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0061554b
add esp, 0x14
test edx, edx
jl 0x60f388
jg 0x60f2fe
test eax, eax
jb 0x60f388
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x60f388
jl 0x60f318
cmp dword [ebp - 0x1008], eax
ja 0x60f388
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x60f336
test ebx, ebx
je 0x60f36f
cmp ecx, edi
jae 0x60f36f
mov al, byte [ecx]
cmp al, 0xd
jne 0x60f350
lea eax, [edi - 1]
cmp ecx, eax
jae 0x60f35c
cmp byte [ecx + 1], 0xa
jne 0x60f35c
inc ecx
jmp 0x60f35c
movzx eax, al
movsx eax, byte [eax + 0x623d58]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x60f336
cmp edx, ebx
jne 0x60f336
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x60f38d
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0060b913
leave
ret

Function at 0x60fac0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x60faed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x60faed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x60fe82
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x61c758
push 0x61c750
push str.FlsAlloc
push 0x1f
call fcn.00610165
mov esi, eax
add esp, 0x10
test esi, esi
je 0x60feb6
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x60febc
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x60ff00
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x61c768
push 0x61c760
push str.FlsGetValue
push 0x21
call fcn.00610165
mov esi, eax
add esp, 0x10
test esi, esi
je 0x60ff37
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x60ff3f
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x61c770
push 0x61c768
push str.FlsSetValue
push 0x22
call fcn.00610165
mov esi, eax
add esp, 0x10
test esi, esi
je 0x60ff79
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x61398a
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 0x613a27
push ebx
push esi
call fcn.00613a2a
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.0061388e
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x6139d4
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x613a26
push edi
push eax
call fcn.0061231b
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x6139f4
call fcn.006113cb
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x613a25
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0061388e
add esp, 0x20
test eax, eax
jne 0x613a13
push edi
call fcn.006113cb
jmp 0x613a1b
push ebx
call fcn.006113cb
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 0x61504c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x624a68]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x61508c
cmp byte [ebx], 0xa
jne 0x61508c
or byte [edi + eax + 0x28], 4
jmp 0x615091
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x615190
mov dl, byte [eax]
cmp dl, 0x1a
je 0x615173
inc eax
cmp dl, 0xd
je 0x6150bd
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x6150e3
cmp eax, ecx
jae 0x6150f1
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x6150a5
jmp 0x615190
push 0
lea eax, [ebp - 0x10]
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 0x61516e
cmp dword [ebp - 0x10], 0
je 0x61516e
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x624a68]
test byte [eax + edi + 0x28], 0x48
je 0x615148
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x615133
mov byte [esi], dl
jmp 0x615144
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x624a68]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x615190
cmp byte [ebp - 1], 0xa
jne 0x615157
cmp esi, ebx
jne 0x615157
mov byte [esi], 0xa
jmp 0x61518f
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.006154ed
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x615190
mov byte [esi], 0xd
jmp 0x61518f
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x624a68]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x61518d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x615190
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x615199
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x624a68]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x6151df
cmp word [ebx], dx
jne 0x6151df
or byte [eax + edi + 0x28], 4
jmp 0x6151e4
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x615347
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x615327
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x615225
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x61525b
cmp eax, edx
jae 0x615269
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x615200
jmp 0x615347
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x615322
cmp dword [ebp - 0x18], 0
je 0x615322
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x624a68]
test byte [eax + edi + 0x28], 0x48
je 0x6152f8
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x6152bc
mov word [esi], cx
jmp 0x6152f3
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x624a68]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x624a68]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x624a68]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x615347
pop eax
cmp word [ebp - 4], ax
jne 0x615308
cmp esi, ebx
jne 0x615308
mov word [esi], ax
jmp 0x615344
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.006154ed
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x615347
push 0xd
pop eax
jmp 0x615303
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x624a68]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x615341
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x615347
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x6196e8
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.0061987f
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x619857
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x619857
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x61980c
jg 0x619744
test eax, eax
je 0x619802
push 1
push 0x1000
call fcn.006122be
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x619767
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x6197f9
push 0x8000
push ebx
call fcn.0060e7eb
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x619790
jg 0x61978b
cmp ecx, 0x1000
jb 0x619790
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00615ff5
add esp, 0x10
cmp eax, 0xffffffff
je 0x6197d5
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 0x61978b
jl 0x6197bc
test ecx, ecx
jne 0x61977d
push dword [ebp - 0xc]
push ebx
call fcn.0060e7eb
push esi
call fcn.006113cb
add esp, 0xc
xor ebx, ebx
jmp 0x619865
cmp byte [edi + 0x24], 0
je 0x6197ec
cmp dword [edi + 0x20], 5
jne 0x6197ec
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x6197f7
mov ebx, dword [edi + 0x18]
jmp 0x6197f9
xor ebx, ebx
push esi
call fcn.006113cb
pop ecx
jmp 0x619865
test ecx, ecx
jg 0x6197ce
jl 0x61980c
test eax, eax
jae 0x6197ce
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.006154ed
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x61982c
cmp byte [edi + 0x1c], 0
je 0x6197ce
jmp 0x61985d
push ebx
call fcn.00613deb
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x6197ce
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 0x619865
cmp byte [edi + 0x1c], 0
je 0x619862
mov ebx, dword [edi + 0x18]
jmp 0x619865
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.006154ed
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401027
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
or dword [ecx], 0xffffffff
push esi
mov esi, eax
mov dl, byte [esi]
test dl, dl
je 0x401057
push edi
mov eax, dword [ecx]
mov edi, eax
movzx edx, dl
and edi, 0xff
xor edi, edx
shr eax, 8
xor eax, dword [edi*4 + 0x458588]
inc esi
mov dword [ecx], eax
mov dl, byte [esi]
test dl, dl
jne 0x401034
pop edi
not dword [ecx]
xor eax, eax
pop esi
ret
Function at 0x40193a
Capabilities:
Check if file exists
Get common file path

Disassembly:
push 0x28c
mov eax, 0x447f04
call fcn.0044663a
mov ebx, ecx
xor edi, edi
cmp ebx, edi
mov dword [ebp - 0x228], ebx
jne 0x40195e
xor eax, eax
jmp 0x401bb6
push 0x44ff7c
push ebx
mov dword [ebp - 0x22c], edi
call fcn.0042c87b
test eax, eax
pop ecx
pop ecx
je 0x401bb3
push str.ntfs
push ebx
call fcn.0042c87b
test eax, eax
pop ecx
pop ecx
je 0x401bb3
push str.fastfat
push ebx
call fcn.0042c87b
test eax, eax
pop ecx
pop ecx
je 0x401bb3
push str.exfat
push ebx
call fcn.0042c87b
test eax, eax
pop ecx
pop ecx
je 0x401bb3
push str.win32k
push ebx
call fcn.0042c87b
test eax, eax
pop ecx
pop ecx
je 0x401bb3
mov esi, 0x103
push esi
lea eax, [ebp - 0x117]
push edi
push eax
mov byte [ebp - 0x118], 0
call fcn.0042c4d0
push esi
lea eax, [ebp - 0x21f]
push edi
push eax
mov byte [ebp - 0x220], 0
call fcn.0042c4d0
mov eax, dword [0x4596a4]
add esp, 0x18
mov ecx, 0x4596a4
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x224], eax
inc esi
push esi
lea eax, [ebp - 0x220]
push eax
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.0042c620
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
add esp, 0xc
push str.System32drivers_
lea eax, [ebp - 0x118]
push eax
call edi
push ebx
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.0042c8e1
mov ebx, 0x44ffb4
push ebx
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.0042c8e1
add esp, 0x18
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.00401c3d
call fcn.004018f6
push dword [ebp - 0x224]
mov dword [ebp - 0x230], eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x401b00
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.0042c620
add esp, 0xc
push str._system32_
lea eax, [ebp - 0x118]
push eax
call edi
push dword [ebp - 0x228]
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.0042c8e1
push ebx
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.0042c8e1
add esp, 0x18
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.00401c3d
lea edi, [ebp - 0x298]
call fcn.0040105d
mov byte [ebp - 4], 1
push dword [ebp - 0x224]
mov eax, edi
push eax
call fcn.004011c7
test eax, eax
je 0x401b61
lea esi, [ebp - 0x228]
mov eax, edi
call fcn.00401863
mov eax, dword [eax]
push str.Microsoft_Corporation
push eax
call fcn.0042ca61
mov ebx, eax
mov eax, dword [ebp - 0x228]
neg ebx
pop ecx
sbb bl, bl
pop ecx
add eax, 0xfffffff0
inc bl
call fcn.00402012
test bl, bl
je 0x401b61
mov dword [ebp - 0x22c], 1
mov eax, dword [0x45982c]
test eax, eax
jne 0x401b8a
push str.Wow64RevertWow64FsRedirection
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x45982c], eax
je 0x401b92
push dword [ebp - 0x230]
call eax
lea ecx, [ebp - 0x298]
call fcn.004010ee
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
call fcn.00402012
mov eax, dword [ebp - 0x22c]
jmp 0x401bb6
xor eax, eax
inc eax
call fcn.004466bd
ret
Function at 0x402246
Capabilities:
Create thread

Disassembly:
push 0x44
mov eax, 0x447ed3
call fcn.004465d1
mov esi, ecx
and dword [ebp - 4], 0
mov eax, dword [esi + 8]
test eax, eax
je 0x40228d
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40228d
push 0xffffffffffffffff
push 0x44fffc
lea eax, [ebp - 0x4c]
push eax
call fcn.004021a6
push 0x4530cc
lea eax, [ebp - 0x4c]
push eax
call fcn.00434f1a
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax]
mov dword [ebp - 0x14], eax
lea eax, [ebp + 8]
lea edi, [esi + 0x10]
mov dword [ebp - 0x20], eax
cmp ebx, dword [ebp - 0x14]
je 0x4022b3
push dword [edi + 4]
lea ecx, [ebx + 8]
push edi
call fcn.00402e7e
mov ebx, dword [ebx]
jmp 0x40229e
mov eax, dword [ebp + 0x14]
mov dword [esi + 4], eax
xor edi, edi
lea eax, [ebp - 0x10]
push eax
push edi
push esi
push 0x402198
push edi
push edi
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [esi + 8], eax
jne 0x4022e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x450010
jmp 0x402276
or dword [ebp - 4], 0xffffffff
lea esi, [ebp + 8]
call fcn.00402907
call fcn.004466a9
ret 0x10

Function at 0x40315f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
mov esi, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4031b7
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4031a8
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x4031a4
cmp edi, eax
jae 0x4031a8
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x403196
cmp edi, eax
jb 0x4031ac
xor eax, eax
jmp 0x4031b6
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x403d14
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x4477c2
call fcn.00446670
mov eax, dword [ebp + 0xc]
mov edi, ecx
mov ebx, edx
mov dword [ebp - 0x41c], eax
call dword [0x458488]
xor esi, esi
mov dword [ebp - 0x430], esi
mov eax, dword [ebp + 8]
mov dword [ebp - 4], esi
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x418], esi
push 2
push esi
push edi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
cmp eax, esi
mov dword [ebp - 0x420], eax
jne 0x403d7a
call fcn.00403a79
mov esi, eax
jmp 0x403e98
push dword [ebp - 0x41c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x403d98
call fcn.00403a79
jmp 0x403e8a
push edi
push dword [ebp - 0x420]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
mov dword [ebp - 0x424], eax
je 0x403d8e
push edi
push dword [ebp - 0x420]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
cmp eax, edi
mov dword [ebp - 0x41c], edi
jae 0x403dee
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x403de4
lea eax, [ebp - 0x418]
call fcn.00404ed3
mov eax, 0x8007000e
jmp 0x403eb3
push 2
push eax
mov byte [ebp - 4], 2
call fcn.00403ede
cmp eax, 0x400
pop ecx
pop ecx
jbe 0x403e12
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.00403ebb
jmp 0x403e1e
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
mov dword [ebp - 4], 1
jmp 0x403e3c
mov ebx, dword [ebp - 0x418]
cmp ebx, esi
jne 0x403e4d
mov esi, 0x8007000e
jmp 0x403e8c
call dword [0x458488]
push edi
push ebx
push edi
push dword [ebp - 0x424]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x403d8e
mov ecx, dword [ebp - 0x418]
push dword [ebp + 0x10]
mov word [ecx + eax*2], si
push dword [ebp - 0x418]
lea ecx, [ebp - 0x42c]
call fcn.00403f25
mov esi, eax
push dword [ebp - 0x420]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x403eb1
lea eax, [ebp - 0x418]
call fcn.00404ed3
mov eax, esi
call fcn.004466cc
ret 0xc
Function at 0x404edc
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x404eef
push 0x80004005
call fcn.00402180
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x404ef6
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push 7
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x404fb2
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x457064]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
lea edx, [ebp - 0x214]
push edx
push 0x2001f
mov eax, ecx
mov ecx, dword [ebp + 8]
xor esi, esi
push esi
mov dword [ebp - 0x220], eax
mov eax, dword [eax]
push ecx
push eax
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x214], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
cmp edi, esi
jne 0x4050cf
xor eax, eax
cmp dword [ebp - 0x210], esi
je 0x405020
push dword [ebp - 0x210]
call ebx
cmp eax, esi
mov ecx, dword [ebp - 0x214]
mov edi, eax
mov dword [ebp - 0x210], ecx
jne 0x4050cf
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [ebp - 0x228]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push ecx
jmp 0x405093
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x210]
call fcn.00404fb2
cmp eax, esi
mov dword [ebp - 0x214], eax
jne 0x4050f2
lea eax, [ebp - 0x228]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x210]
mov dword [ebp - 0x218], 0x100
call edi
test eax, eax
je 0x405058
cmp dword [ebp - 0x210], esi
je 0x4050b9
push dword [ebp - 0x210]
call ebx
mov dword [ebp - 0x210], esi
push dword [ebp - 0x21c]
mov eax, dword [ebp - 0x220]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
cmp dword [ebp - 0x210], esi
je 0x4050df
push dword [ebp - 0x210]
call ebx
mov eax, edi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042c46d
leave
ret 4
cmp dword [ebp - 0x210], esi
je 0x405102
push dword [ebp - 0x210]
call ebx
mov eax, dword [ebp - 0x214]
jmp 0x4050e1
Function at 0x405699
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 1
push connect
push dword [ebp + 8]
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x405731
push edi
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [ebp - 4], ebx
mov edi, eax
jne 0x405727
cmp edi, 0x200000
ja 0x405727
lea eax, [edi + 2]
push esi
push eax
call fcn.0042caf2
pop ecx
push ebx
mov esi, eax
lea eax, [ebp + 8]
push eax
push edi
push esi
push dword [ebp - 8]
mov dword [ebp + 8], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405726
mov eax, dword [ebp + 8]
cmp eax, edi
jne 0x405726
mov byte [eax + esi], bl
mov eax, dword [ebp + 8]
mov byte [eax + esi + 1], bl
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
mov dword [ebp - 0xc], 1
pop esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, dword [ebp - 0xc]
pop ebx
leave
ret 0xc