joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001dcf7
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
push ebx
push esi
push edi
push dword [esp + 0x28]
push dword [esp + 0x28]
push edx
push ecx
call fcn.100120b9
mov dword [esp + 0x24], 0xf19f37
lea edi, [edx + 4]
imul eax, dword [esp + 0x24], 0x42
mov dword [esp + 0x24], eax
xor dword [esp + 0x24], 0x3e4cf98f
mov dword [esp + 0x20], 0xb1a340
add dword [esp + 0x20], 0xbcd0
xor dword [esp + 0x20], 0xb2d2cb
mov dword [esp + 0x1c], 0x9743e1
or dword [esp + 0x1c], 0x457c67e3
xor dword [esp + 0x1c], 0x45f711d7
mov ecx, dword [edx]
mov eax, dword [edi]
add edi, 4
xor eax, ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], eax
lea esi, [eax + 1]
mov eax, esi
mov ecx, esi
and eax, 0xfffffffc
add eax, 4
and cl, 3
cmovne esi, eax
mov eax, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
add esp, 8
mov eax, dword [esp + 0x1c]
lea edx, [esi + esi]
call fcn.10007ff2
mov ebx, eax
mov dword [esp + 0x1c], ebx
pop ecx
pop ecx
test ebx, ebx
je 0x1001de07
shr esi, 2
xor eax, eax
push ebp
xor ebp, ebp
mov edx, ebx
lea ecx, [edi + esi*4]
mov esi, ecx
sub esi, edi
add esi, 3
shr esi, 2
cmp edi, ecx
cmova esi, eax
test esi, esi
je 0x1001ddfc
mov ebx, dword [esp + 0x1c]
mov ecx, dword [edi]
lea edi, [edi + 4]
xor ecx, ebx
movzx eax, cl
mov word [edx], ax
mov eax, ecx
shr eax, 8
lea edx, [edx + 8]
movzx eax, al
mov word [edx - 6], ax
shr ecx, 0x10
movzx eax, cl
shr ecx, 8
inc ebp
mov word [edx - 4], ax
movzx eax, cl
mov word [edx - 2], ax
cmp ebp, esi
jb 0x1001ddc3
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
xor ecx, ecx
pop ebp
mov word [ebx + eax*2], cx
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x14
ret
Function at 0x10001030
Capabilities:
Get geographical location

Disassembly:
push 0xffffffffffffffff
push 0x1000c472
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10010060]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
xor edi, edi
cmp dword [0x10011bbc], edi
jne 0x100010d4
push 0x10011bbc
push 0x1000e9f8
push edi
call dword [sym.imp.DWrite.dll_DWriteCreateFactory]
cmp eax, edi
jl 0x10001089
mov eax, dword [0x10011bbc]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x44]
push 0x10011bc0
push eax
call edx
cmp eax, edi
jge 0x100010c0
mov eax, dword [0x10011bbc]
cmp eax, edi
je 0x100010a0
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [0x10011bbc], edi
mov eax, dword [0x10011bc0]
cmp eax, edi
je 0x10001207
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [0x10011bc0], edi
jmp 0x10001207
push 0x55
push 0x10011bc8
push 0x5c
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov eax, dword [esp + 0x24]
cmp eax, 4
ja 0x10001207
lea esi, [eax + eax*4]
add esi, esi
add esi, esi
mov ecx, dword [esi + 0x10011c78]
cmp ecx, edi
lea ebx, [esi + 0x10011c78]
je 0x10001140
cmp dword [esi + 0x10011c7c], edi
je 0x10001140
cmp dword [esi + 0x10011c80], edi
je 0x10001140
mov edi, dword [esp + 0x2c]
cmp dword [esi + 0x10011c84], edi
mov ebx, dword [esp + 0x30]
jne 0x10001120
cmp dword [esi + 0x10011c88], ebx
je 0x10001136
mov eax, dword [ecx]
push ebx
push edi
push ecx
mov ecx, dword [eax + 0x28]
call ecx
mov dword [esi + 0x10011c84], edi
mov dword [esi + 0x10011c88], ebx
mov eax, 1
jmp 0x10001209
call fcn.10001620
mov ebp, dword [esp + 0x30]
mov eax, dword [0x10011bc0]
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov edx, dword [eax]
mov edx, dword [edx + 0x1c]
push ebx
push ebp
push edi
push ecx
push eax
call edx
test eax, eax
jl 0x10001207
mov eax, dword [ebx]
fld1
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
push ecx
fstp dword [esp]
push eax
call edx
mov eax, dword [0x10011bbc]
mov dword [esi + 0x10011c88], ebp
mov dword [esi + 0x10011c84], edi
mov ecx, dword [eax]
mov edx, dword [ecx + 0x28]
lea ebp, [esi + 0x10011c7c]
push ebp
push eax
call edx
test eax, eax
jl 0x100011fe
push 0x10011100
push 0x10
call fcn.100018e4
mov edi, eax
add esp, 8
mov dword [esp + 0x30], edi
xor ecx, ecx
cmp edi, ecx
mov dword [esp + 0x1c], ecx
je 0x100011e6
mov eax, dword [ebx]
mov ebp, dword [ebp]
mov dword [edi], vtable.GdiTextRenderer.0
mov dword [edi + 4], ecx
mov dword [edi + 8], eax
mov dword [edi + 0xc], ebp
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov eax, dword [edi + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
jmp 0x100011e8
xor edi, edi
test edi, edi
mov dword [esp + 0x1c], 0xffffffff
mov dword [esi + 0x10011c80], edi
jne 0x10001136
mov eax, dword [esp + 0x24]
call fcn.10001620
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x10

Function at 0x1000191e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10010060]
jne 0x10001928
repz ret
jmp fcn.10002140
Function at 0x10005a98
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x10010410]
je 0x10005ab3
inc edi
cmp edi, 0x17
jb 0x10005aa4
cmp edi, 0x17
jae 0x10005c33
push ebp
push 3
call fcn.10007df6
cmp eax, 1
pop ecx
je 0x10005bff
push 3
call fcn.10007df6
test eax, eax
pop ecx
jne 0x10005ae7
cmp dword [0x10011114], 1
je 0x10005bff
cmp ebx, 0xfc
je 0x10005c32
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x10011760
push ebp
call fcn.10004e55
add esp, 0xc
test eax, eax
je 0x10005b1d
push esi
push esi
push esi
push esi
push esi
call fcn.10004b8e
add esp, 0x14
push 0x104
mov esi, 0x10011779
push esi
push 0
mov byte [0x1001187d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10005b61
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.10004e55
add esp, 0xc
test eax, eax
je 0x10005b61
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.10004b8e
add esp, 0x14
push esi
call fcn.10004ec0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x10005ba6
push esi
call fcn.10004ec0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x10011a74
push 0x1000d998
sub ecx, eax
push ecx
push eax
call fcn.10007d43
add esp, 0x14
test eax, eax
je 0x10005ba6
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.10004b8e
add esp, 0x14
jmp 0x10005ba8
xor esi, esi
push 0x1000df20
push ebx
push ebp
call fcn.10007cd2
add esp, 0xc
test eax, eax
je 0x10005bc8
push esi
push esi
push esi
push esi
push esi
call fcn.10004b8e
add esp, 0x14
push dword [edi*8 + 0x10010414]
push ebx
push ebp
call fcn.10007cd2
add esp, 0xc
test eax, eax
je 0x10005bea
push esi
push esi
push esi
push esi
push esi
call fcn.10004b8e
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.10007b15
add esp, 0xc
jmp 0x10005c32
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x10005c32
cmp ebp, 0xffffffff
je 0x10005c32
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x10010414]
push dword [esi]
call fcn.10004ec0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x10007b15
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.100027ac
xor ebx, ebx
cmp dword [0x10011ae0], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x10007beb
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10007ccb
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x10007ccb
push eax
call fcn.1000273e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10011ae0], eax
call esi
push eax
call fcn.1000273e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10011ae4], eax
call esi
push eax
call fcn.1000273e
mov dword [0x10011ae8], eax
lea eax, [ebp - 0xc]
push eax
call fcn.1000247f
test eax, eax
pop ecx
pop ecx
je 0x10007bb9
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10004b8e
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x10007beb
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.1000273e
cmp eax, ebx
pop ecx
mov dword [0x10011af0], eax
je 0x10007beb
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1000273e
pop ecx
mov dword [0x10011aec], eax
mov eax, dword [0x10011aec]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x10007c70
cmp dword [0x10011af0], ecx
je 0x10007c70
push eax
call fcn.100027b5
push dword [0x10011af0]
mov esi, eax
call fcn.100027b5
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x10007c70
cmp edi, ebx
je 0x10007c70
call esi
cmp eax, ebx
je 0x10007c3d
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10007c3d
test byte [ebp - 0x18], 1
jne 0x10007c70
lea eax, [ebp - 0x10]
push eax
call fcn.100024b6
test eax, eax
pop ecx
je 0x10007c58
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10004b8e
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x10007c67
or dword [ebp + 0x10], 0x200000
jmp 0x10007cab
or dword [ebp + 0x10], 0x40000
jmp 0x10007cab
mov eax, dword [0x10011ae4]
cmp eax, dword [ebp - 8]
je 0x10007cab
push eax
call fcn.100027b5
cmp eax, ebx
pop ecx
je 0x10007cab
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x10007cab
mov eax, dword [0x10011ae8]
cmp eax, dword [ebp - 8]
je 0x10007cab
push eax
call fcn.100027b5
cmp eax, ebx
pop ecx
je 0x10007cab
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10011ae0]
call fcn.100027b5
cmp eax, ebx
pop ecx
je 0x10007ccb
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10007ccd
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100092f4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
call fcn.100090c7
adc ebx, esi
and eax, 0x478b666b
push es
cmp ax, bx
jbe 0x10009321
lea ecx, [esi + 0xc]
movzx edx, ax
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
add eax, esi
cmp dword [ebp - 8], eax
jae 0x1000931b
mov dword [ebp - 8], eax
add ecx, 0x28
dec edx
jne 0x1000930c
mov byte [ebp - 0x58], bl
mov byte [ebp - 0x57], bl
mov byte [ebp - 0x56], 0x58
mov byte [ebp - 0x55], bl
mov byte [ebp - 0x54], 0xe0
mov byte [ebp - 0x53], 0xc2
mov byte [ebp - 0x52], 0xd3
mov byte [ebp - 0x51], 0xf4
mov byte [ebp - 0x50], 0xde
mov byte [ebp - 0x4f], 0xd4
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.100090c7
xchg esi, eax
cmp eax, 0x458dd82e
test al, 0x50
call fcn.100090d7
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.1000908c
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x100093b5
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.100090c7
test eax, 0x8de45f99
inc ebp
rcl byte [eax - 0x18], 0xc5
cld
invalid
Function at 0x448a00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x14]
mov edi, dword [eax*4 + 0x499fe8]
mov dword [esp + 0x10], edi
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x448a26
sub edi, ecx
mov eax, edi
shr eax, 5
inc eax
mov ebx, edi
mov dword [esp + 0xc], edi
mov ecx, edi
cmp edi, eax
jb 0x448a64
mov edx, dword [esp + 0x10]
movzx edx, byte [edx + ecx - 1]
mov esi, ebx
shl esi, 5
add edx, esi
mov esi, ebx
shr esi, 2
add edx, esi
sub ecx, eax
xor ebx, edx
cmp ecx, eax
jae 0x448a41
mov dword [esp + 0xc], ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 8]
mov edx, dword [eax]
dec ecx
and ecx, ebx
mov edx, dword [edx + ecx*4]
test edx, edx
je 0x448af2
lea esp, [esp]
cmp dword [edx + 0xc], edi
jne 0x448aec
test edi, edi
je 0x448a8f
test byte [edx + 7], 0x10
jne 0x448aec
mov esi, dword [esp + 0x10]
mov eax, edi
lea ecx, [edx + 0x10]
cmp edi, 4
jb 0x448ab4
lea ecx, [ecx]
mov ebx, dword [esi]
cmp ebx, dword [ecx]
jne 0x448ae8
sub eax, 4
add ecx, 4
add esi, 4
cmp eax, 4
jae 0x448aa0
test eax, eax
je 0x448b79
mov bl, byte [ecx]
cmp bl, byte [esi]
jne 0x448ae8
cmp eax, 1
jbe 0x448b79
mov bl, byte [ecx + 1]
cmp bl, byte [esi + 1]
jne 0x448ae8
cmp eax, 2
jbe 0x448b79
mov al, byte [ecx + 2]
cmp al, byte [esi + 2]
je 0x448b79
mov ebx, dword [esp + 0xc]
mov edx, dword [edx]
test edx, edx
jne 0x448a80
mov edx, dword [esp + 0x10]
mov eax, dword [ebp + 8]
push ebx
push edi
push edx
push eax
call fcn.00448000
add esp, 0x10
mov ecx, dword [esp + 0x14]
or byte [eax + 5], 0x20
lea edx, [ecx + 1]
inc ecx
mov byte [eax + 6], dl
mov dword [esp + 0x14], ecx
cmp ecx, 0x20
jl 0x448a14
mov ebx, dword [ebp + 8]
push 2
push 0x49d7c4
push ebx
call fcn.004480d0
mov byte [eax + 6], 0xc
mov ecx, dword [str.type]
add esp, 0xc
test ecx, ecx
je 0x448b72
mov esi, 0x49a0c0
mov eax, ecx
add esi, 4
lea edi, [eax + 1]
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x448b50
sub eax, edi
push eax
push ecx
push ebx
call fcn.004480d0
or byte [eax + 5], 0x20
mov byte [eax + 6], 0x2e
mov ecx, dword [esi]
add esp, 0xc
test ecx, ecx
jne 0x448b47
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
mov al, byte [edx + 5]
mov esi, dword [esi + 0x10]
movzx ebx, byte [esi + 0x14]
movzx ecx, al
and ecx, 3
not ebx
test bl, cl
je 0x448b97
xor al, 3
mov byte [edx + 5], al
mov eax, edx
jmp 0x448b05
Function at 0x430000
Capabilities:
Authenticate hmac
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x550f5cb2
nop
nop
nop
nop
test eax, eax
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
mov ecx, 0x5d570830
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x430084
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x417b00
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00488a90
sub esp, 4
call fcn.004887b0
mov dword [ebp - 0x18], 0
call fcn.004889a0
call fcn.004889a0
call sub.KERNEL32.dll_GetUserDefaultLangID
mov dword [ebp - 0x10], eax
call fcn.004889c0
mov ecx, eax
mov eax, dword [ebp - 0x10]
cdq
mov dword [esp + 8], ecx
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.00486d30
sub esp, 0xc
call fcn.004889c0
mov dword [esp + 4], eax
lea eax, [ebp - 0x18]
mov dword [esp], eax
call fcn.00488710
sub esp, 8
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call fcn.00486ea0
sub esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 3
jne 0x417bc0
call fcn.004889a0
mov dword [esp], 0xc3ff94
call fcn.004887f0
sub esp, 4
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call fcn.004887f0
sub esp, 4
call fcn.004889c0
mov dword [esp + 4], eax
lea eax, [ebp - 0x18]
mov dword [esp], eax
call fcn.00488710
sub esp, 8
jmp 0x417bc1
nop
call fcn.004889a0
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call fcn.004887f0
sub esp, 4
call fcn.00488a60
mov dword [ebp - 0xc], eax
nop
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call fcn.00488920
sub esp, 4
mov eax, dword [ebp - 0xc]
leave
ret 4
Function at 0x4393b8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov dword [ebp - 0xc], 0
call fcn.004887b0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov eax, str.Kernel32
mov dword [esp], eax
call sub.KERNEL32.dll_GetModuleHandleW
sub esp, 4
mov dword [ebp - 0x18], eax
mov eax, str.GetCurrentProcessId
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sub.KERNEL32.dll_GetProcAddress
sub esp, 8
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov eax, dword [ebp - 0x14]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.KERNEL32.dll_CreateRemoteThread
sub esp, 0x1c
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x439467
mov dword [ebp - 0xc], 0
jmp 0x4394b7
nop
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.KERNEL32.dll_WaitForSingleObject
sub esp, 8
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.KERNEL32.dll_GetExitCodeThread
sub esp, 8
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0xc], eax
nop
mov eax, dword [ebp - 0xc]
leave
ret 4
Function at 0x43a0ee
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov dword [ebp - 0xc], 0
call fcn.004887b0
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
lea eax, [ebp + 0xc]
mov dword [esp], eax
call fcn.00488840
sub esp, 8
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
lea eax, [ebp + 0x10]
mov dword [esp], eax
call fcn.00488840
sub esp, 8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov edx, eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 0x20], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0xf003f
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.ADVAPI32.dll_RegCreateKeyExW
sub esp, 0x24
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x43a1e4
mov eax, dword [ebp + 0x10]
mov ecx, eax
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp + 0x1c]
mov dword [esp + 0x14], edx
mov edx, dword [ebp + 0x18]
mov dword [esp + 0x10], edx
mov edx, dword [ebp + 0x14]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov dword [esp + 4], ecx
mov dword [esp], eax
call sub.ADVAPI32.dll_RegSetValueExW
sub esp, 0x18
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call sub.ADVAPI32.dll_RegCloseKey
sub esp, 4
mov dword [ebp - 0x20], eax
jmp 0x43a1e5
nop
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call fcn.00488920
sub esp, 4
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.00488920
sub esp, 4
mov eax, dword [ebp - 0xc]
leave
ret 0x18
Function at 0x4775de
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
push ecx
mov eax, dword [esp + 0x10]
push edi
xor edi, edi
test eax, eax
je 0x4777b0
cmp word [eax], di
je 0x4777b0
push edi
push 0x80
push 3
push edi
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 8], eax
cmp eax, 0xffffffff
je 0x4777ac
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x14], eax
test eax, eax
jle 0x4777a2
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push ebp
call fcn.004937d1
mov ebx, eax
test ebx, ebx
je 0x4777a0
cmp ebp, 0xffffffff
jne 0x477650
push 2
pop eax
jmp 0x477652
mov eax, ebp
push esi
push eax
push dword [esp + 0x20]
call fcn.00493f52
mov esi, eax
test esi, esi
je 0x477796
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
jne 0x477672
mov eax, esi
mov dword [esi + 0x30], eax
mov eax, dword [esi + 4]
mov dword [esi + 0x38], eax
mov eax, dword [esp + 0x20]
add eax, 8
mov dword [esi + 0x2c], ebx
push eax
push edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x14], edi
push dword [0xc62924]
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi + 0x28], eax
test eax, eax
je 0x4776bc
mov ecx, dword [esp + 0x1c]
mov dword [eax + 4], ecx
mov eax, dword [esi + 0x28]
mov dword [eax], edi
mov eax, dword [esi + 0x28]
add eax, 8
mov dword [esi + 0x44], eax
cmp ebp, 0xffffffff
je 0x4776c8
mov dword [esi + 0x34], 1
push esi
push ebx
call fcn.0048b260
mov edx, dword [esp + 0x28]
mov ebp, 0x4000
pop ecx
pop ecx
mov ecx, edi
mov dword [esp + 0x1c], ecx
lea eax, [ecx + ebp]
cmp eax, edx
jle 0x4776eb
mov ebp, edx
sub ebp, ecx
push ebp
push ebx
call fcn.0048b280
mov dword [esp + 0x2c], eax
pop ecx
pop ecx
test eax, eax
je 0x477785
push edi
lea ecx, [esp + 0x14]
push ecx
push ebp
push eax
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x10]
cmp ecx, ebp
jne 0x477775
mov eax, dword [esp + 0x1c]
add eax, ecx
mov dword [esp + 0x1c], eax
cmp dword [esi + 0x14], edi
jne 0x47773e
push ecx
push dword [esp + 0x28]
call fcn.004938b9
mov dword [esi + 0x14], eax
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x20]
jl 0x477748
push 1
jmp 0x477749
push edi
push ecx
push ebx
call fcn.0048b4e0
add esp, 0xc
test eax, eax
je 0x477769
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
cmp ecx, edx
jl 0x4776e0
jmp 0x477793
push ebx
call fcn.0048b600
pop ecx
mov dword [esi + 0x18], eax
jmp 0x47778c
mov dword [esi + 0x18], 0x100
mov dword [esi + 0x24], str.file_read_error
jmp 0x477793
mov dword [esi + 0x18], 1
push ebx
push esi
call fcn.0049387b
mov dword [esi + 0x2c], edi
push ebx
call fcn.0048b6d0
pop ecx
mov edi, esi
pop esi
pop ebp
pop ebx
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x4777b2
xor eax, eax
pop edi
pop ecx
pop ecx
ret 0xc