joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41b4ba
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 + 0x4329f0]
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 0x41b4fa
cmp byte [ebx], 0xa
jne 0x41b4fa
or byte [edi + eax + 0x28], 4
jmp 0x41b4ff
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 0x41b5fe
mov dl, byte [eax]
cmp dl, 0x1a
je 0x41b5e1
inc eax
cmp dl, 0xd
je 0x41b52b
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x41b551
cmp eax, ecx
jae 0x41b55f
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 0x41b513
jmp 0x41b5fe
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 0x41b5dc
cmp dword [ebp - 0x10], 0
je 0x41b5dc
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4329f0]
test byte [eax + edi + 0x28], 0x48
je 0x41b5b6
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41b5a1
mov byte [esi], dl
jmp 0x41b5b2
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4329f0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41b5fe
cmp byte [ebp - 1], 0xa
jne 0x41b5c5
cmp esi, ebx
jne 0x41b5c5
mov byte [esi], 0xa
jmp 0x41b5fd
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041c040
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41b5fe
mov byte [esi], 0xd
jmp 0x41b5fd
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4329f0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41b5fb
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41b5fe
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41b607
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 + 0x4329f0]
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 0x41b64d
cmp word [ebx], dx
jne 0x41b64d
or byte [eax + edi + 0x28], 4
jmp 0x41b652
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 0x41b7b5
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 0x41b795
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x41b693
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41b6c9
cmp eax, edx
jae 0x41b6d7
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 0x41b66e
jmp 0x41b7b5
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 0x41b790
cmp dword [ebp - 0x18], 0
je 0x41b790
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4329f0]
test byte [eax + edi + 0x28], 0x48
je 0x41b766
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 0x41b72a
mov word [esi], cx
jmp 0x41b761
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4329f0]
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 + 0x4329f0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4329f0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x41b7b5
pop eax
cmp word [ebp - 4], ax
jne 0x41b776
cmp esi, ebx
jne 0x41b776
mov word [esi], ax
jmp 0x41b7b2
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041c040
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x41b7b5
push 0xd
pop eax
jmp 0x41b771
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4329f0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x41b7af
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x41b7b5
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 0x41d93a
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 0x41d9d7
push ebx
push esi
call fcn.0041d903
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.0041c634
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41d984
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41d9d6
push edi
push eax
call fcn.00417432
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41d9a4
call fcn.00416821
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41d9d5
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041c634
add esp, 0x20
test eax, eax
jne 0x41d9c3
push edi
call fcn.00416821
jmp 0x41d9cb
push ebx
call fcn.00416821
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 0x420007
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00415560
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 0x420076
cmp esi, dword [ebp - 4]
je 0x420071
cmp dword [ebp + 0xc], 0
je 0x420071
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x42004e
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0041fb59
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x420078
xor eax, eax
inc eax
jmp 0x420078
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x4200dd
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x431040]
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.00415560
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.00415560
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 0x420154
cmp word [ecx], dx
je 0x420154
mov eax, dword [0x42a6f4]
push edi
dec eax
push eax
push 0x42a5e0
call fcn.0042007c
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x4201c7
cmp word [eax], dx
je 0x4201c7
mov eax, dword [edi]
test eax, eax
je 0x420178
cmp word [eax], dx
je 0x420178
lea eax, [ebp - 0x10]
push eax
call fcn.0041fa5f
jmp 0x420181
lea eax, [ebp - 0x10]
push eax
call fcn.0041fafa
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4201f1
mov eax, dword [0x42a5dc]
push dword [ebp - 0x14]
dec eax
push eax
push 0x42a2d0
call fcn.0042007c
add esp, 0xc
test al, al
je 0x4201f1
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x4201bc
cmp word [eax], di
je 0x4201bc
lea eax, [ebp - 0x10]
push eax
call fcn.0041fa5f
pop ecx
jmp 0x4201f3
lea eax, [ebp - 0x10]
push eax
call fcn.0041fafa
jmp 0x4201b9
mov eax, dword [edi]
test eax, eax
je 0x4201de
cmp word [eax], dx
je 0x4201de
lea eax, [ebp - 0x10]
push eax
call fcn.0041fa14
pop ecx
jmp 0x4201f1
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 0x4202bc
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0041ff01
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4202bc
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x4202bc
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x4202bc
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x420249
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00418cbe
test ebx, ebx
je 0x4202b7
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00418cbe
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4202bc
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 0x4202bc
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.004235f6
add esp, 0x10
xor eax, eax
inc eax
jmp 0x4202be
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408aca
leave
ret
Function at 0x4252e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42530d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42530d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x403de0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x9c
mov eax, dword [0x42b080]
test eax, eax
je 0x403dfd
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
sub esp, 0xc
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 0x61616161
push eax
mov dword [ebp - 0x44], 0x61616161
mov dword [ebp - 0x40], 0x61616161
mov dword [ebp - 0x3c], 0x61616161
mov dword [ebp - 0x38], 0x61616161
mov dword [ebp - 0x34], 0x61616161
mov dword [ebp - 0x30], 0x61616161
mov dword [ebp - 0x2c], 0x61616161
mov byte [ebp - 0x28], 0
call sub.KERNEL32.dll_FindAtomA
add esp, 0xc
test ax, ax
jne 0x403f54
sub esp, 0xc
xor esi, esi
lea ebx, [ebp - 0x78]
push 0x14
call sym._malloc
lea ecx, [ebp - 0xa8]
mov dword [0x42b080], eax
add esp, 0x10
mov dword [eax], 0
mov edx, eax
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 4], sym._abort
mov dword [eax + 8], sym._abort
mov edi, ecx
test eax, eax
jne 0x403f40
lea ecx, [ebp - 0xa7]
mov byte [ebp - 0xa8], 0x30
cmp ecx, edi
jbe 0x403ebb
lea esi, [esi]
dec ecx
inc esi
mov al, byte [ecx]
mov byte [ebx], al
inc ebx
cmp ecx, edi
ja 0x403eb0
mov eax, 0x20
mov byte [ebx], 0
sub eax, esi
push edi
lea edx, [ebp - 0x48]
push eax
push 0x61
push edx
call sym._memset
add esp, 0x10
xor edx, edx
cmp edx, esi
jae 0x403ef6
nop
lea esi, [esi]
mov eax, edx
sub eax, esi
cmp byte [ebp + edx - 0x78], 0x30
je 0x403f35
mov cl, 0x41
inc edx
mov byte [ebp + eax - 0x28], cl
cmp edx, esi
jb 0x403ee0
sub esp, 0xc
lea eax, [ebp - 0x48]
mov byte [ebp - 0x28], 0
push eax
call sub.KERNEL32.dll_AddAtomA
add esp, 0xc
mov edx, dword [0x42b080]
lea eax, [edx + 4]
mov dword [0x42b084], eax
lea eax, [edx + 8]
mov dword [0x42b088], eax
lea eax, [edx + 0xc]
add edx, 0x10
mov dword [0x42b08c], eax
mov dword [0x42b090], edx
jmp 0x403df5
mov cl, 0x61
jmp 0x403eed
mov eax, edx
and eax, 1
add eax, 0x30
mov byte [ecx], al
inc ecx
shr edx, 1
jne 0x403f40
jmp 0x403ea9
lea edx, [ebp - 0x48]
push ebx
and eax, 0xffff
push 0x21
push edx
push eax
call sub.KERNEL32.dll_GetAtomNameA
xor edx, edx
pop ecx
lea esi, [esi]
cmp byte [ebp + edx - 0x48], 0x61
setne al
add eax, 0x30
mov byte [ebp + edx - 0x48], al
inc edx
cmp edx, 0x1f
jbe 0x403f70
push eax
lea eax, [ebp - 0x48]
push 2
push 0
push eax
call sym._strtoul
add esp, 0x10
mov dword [0x42b080], eax
jmp 0x403f09
Function at 0x4251bc
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov edx, dword [0x42c228]
mov ebp, esp
mov eax, 0x4396d0
push esi
test edx, edx
push ebx
je 0x4251fb
test edx, edx
js 0x42524c
mov ebx, dword [0x4396e0]
call sub.KERNEL32.dll_GetLastError
sub esp, 0xc
mov esi, eax
push ebx
call sub.KERNEL32.dll_TlsGetValue
mov ebx, eax
push esi
call sub.KERNEL32.dll_SetLastError
add esp, 0xc
test ebx, ebx
je 0x425202
mov eax, ebx
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
sub esp, 0xc
push 8
call sym._malloc
add esp, 0x10
mov ebx, eax
test eax, eax
je 0x425265
mov esi, dword [0x4396e0]
push eax
push eax
push ebx
push esi
call sub.KERNEL32.dll_TlsSetValue
pop edx
test eax, eax
pop ecx
je 0x42523f
xor eax, eax
test eax, eax
jne 0x425265
mov dword [ebx], 0
mov dword [ebx + 4], 0
jmp 0x4251f9
call sub.KERNEL32.dll_GetLastError
jmp 0x42522c
call sym.get_globals_init_once__
mov eax, dword [0x42c228]
test eax, eax
jne 0x4251d4
mov eax, 0x4396d0
jmp 0x4251fb
call method.std.terminate__
nop
nop

Function at 0x42526c
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov eax, dword [0x42c228]
mov ebp, esp
test eax, eax
push esi
push ebx
jne 0x42528c
mov eax, 0x4396d0
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
mov ebx, dword [0x4396e0]
call sub.KERNEL32.dll_GetLastError
sub esp, 0xc
mov esi, eax
push ebx
call sub.KERNEL32.dll_TlsGetValue
mov ebx, eax
push esi
call sub.KERNEL32.dll_SetLastError
mov eax, ebx
add esp, 0xc
jmp 0x42527f
Function at 0x401460
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0xc], ecx
cmp dword [ebp + 0x10], 0
je 0x401477
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
jne 0x40147e
xor al, al
jmp 0x401502
mov ecx, dword [ebp + 8]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 8]
mov cl, byte [eax]
mov byte [ebp - 1], cl
add dword [ebp - 8], 1
cmp byte [ebp - 1], 0
jne 0x40148d
mov edx, dword [ebp - 8]
sub edx, dword [ebp - 0x14]
mov dword [ebp - 0x18], edx
jne 0x4014ae
xor al, al
jmp 0x401502
lea eax, [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp - 0xc]
call fcn.004016d0
movzx eax, al
test eax, eax
jne 0x4014cd
xor al, al
jmp 0x401502
lea ecx, [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp + 0xc]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4014f8
mov dword [ebp - 0x10], 1
jmp 0x4014ff
mov dword [ebp - 0x10], 0
mov al, byte [ebp - 0x10]
mov esp, ebp
pop ebp
ret 0x10

Function at 0x401510
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0xc], ecx
cmp dword [ebp + 0x10], 0
je 0x401527
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
jne 0x40152e
xor al, al
jmp 0x4015b2
mov ecx, dword [ebp + 8]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 8]
mov cl, byte [eax]
mov byte [ebp - 1], cl
add dword [ebp - 8], 1
cmp byte [ebp - 1], 0
jne 0x40153d
mov edx, dword [ebp - 8]
sub edx, dword [ebp - 0x14]
mov dword [ebp - 0x18], edx
jne 0x40155e
xor al, al
jmp 0x4015b2
lea eax, [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp - 0xc]
call fcn.004015c0
movzx eax, al
test eax, eax
jne 0x40157d
xor al, al
jmp 0x4015b2
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x4015a8
mov dword [ebp - 0x10], 1
jmp 0x4015af
mov dword [ebp - 0x10], 0
mov al, byte [ebp - 0x10]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x408596
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 0x4085b7
jl 0x4085ae
test edi, edi
jne 0x4085b7
xor eax, eax
xor edx, edx
jmp 0x408678
cmp dword [ebx + 0x38], 0
je 0x4085cc
push eax
push edi
push dword [ebp + 8]
call fcn.0040867e
jmp 0x408678
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x408613
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x408613
cmp eax, edi
jb 0x4085ed
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0040a990
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 0x408619
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x40866d
mov ecx, ebx
call fcn.00407dde
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x408658
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00412135
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 0x40866d
jmp 0x40862b
test edx, edx
je 0x40866d
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00412135
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 0x40a15f
Capabilities:
Parse pe header

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

Function at 0x41155d
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x433040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x4115a0
call fcn.00413565
mov dword [eax], 0xf
call fcn.00413578
mov dword [eax], 0xd
call fcn.00410660
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409478
leave
ret
test eax, eax
jne 0x4115a7
inc eax
jmp 0x411594
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 0x411592
xor eax, eax
cmp ecx, 1
setne al
jmp 0x411594

Function at 0x4187dd
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42bf28
push 0x42bf20
push str.FlsAlloc
push 0x1f
call fcn.00418648
mov esi, eax
add esp, 0x10
test esi, esi
je 0x418811
push dword [ebp + 8]
mov ecx, esi
call dword [0x4281ac]
call esi
jmp 0x418817
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x41885b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42bf38
push 0x42bf30
push str.FlsGetValue
push 0x21
call fcn.00418648
mov esi, eax
add esp, 0x10
test esi, esi
je 0x418892
push dword [ebp + 8]
mov ecx, esi
call dword [0x4281ac]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x41889a
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42bf40
push 0x42bf38
push str.FlsSetValue
push 0x22
call fcn.00418648
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4188d4
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4281ac]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x41add5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040a2d0
mov eax, dword [0x433040]
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.0041797c
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41ae17
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41af73
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00426c90
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 + 0x4349a8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0041bdd2
mov ecx, dword [esi*4 + 0x4349a8]
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 0x41af6c
cmp eax, dword [ecx + edi + 0x24]
jne 0x41af6c
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 0x41af6c
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041bdd2
add esp, 0x14
test edx, edx
jl 0x41af6c
jg 0x41aee2
test eax, eax
jb 0x41af6c
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41af6c
jl 0x41aefc
cmp dword [ebp - 0x1008], eax
ja 0x41af6c
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41af1a
test ebx, ebx
je 0x41af53
cmp ecx, edi
jae 0x41af53
mov al, byte [ecx]
cmp al, 0xd
jne 0x41af34
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41af40
cmp byte [ecx + 1], 0xa
jne 0x41af40
inc ecx
jmp 0x41af40
movzx eax, al
movsx eax, byte [eax + 0x4332f8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41af1a
cmp edx, ebx
jne 0x41af1a
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41af71
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00409478
leave
ret