joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4175fd
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x42163c]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x421968]
je 0x417634
inc eax
cmp eax, 0x13
jb 0x417625
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x421968]
jne 0x417757
mov eax, dword [0x5224f0]
cmp eax, 1
je 0x417732
cmp eax, edx
jne 0x417664
cmp dword [0x421524], 1
je 0x417732
cmp ecx, 0xfc
je 0x417757
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x41769a
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.00418fc0
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.004140a0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4176ce
mov eax, edi
push eax
call fcn.004140a0
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x41d580
push edi
call fcn.004190c0
add esp, 0x10
push edi
call fcn.004140a0
push dword [esi + 0x42196c]
mov ebx, eax
call fcn.004140a0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00417e90
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00418fc0
push edi
push ebx
call fcn.00418fd0
push 0x41d560
push ebx
call fcn.00418fd0
push dword [esi + 0x42196c]
push ebx
call fcn.00418fd0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00418ec0
add esp, 0x2c
jmp 0x417757
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x42196c]
push dword [esi]
call fcn.004140a0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.0041848e
add ebp, 0x90
leave
ret
Function at 0x418900
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x42163c]
xor ecx, ecx
xor eax, ebp
cmp dword [ebp + 0x3b4], ecx
push edi
mov edi, dword [ebp + 0x3b0]
mov dword [ebp + 0x3a0], eax
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x78], ecx
jne 0x41893c
xor eax, eax
jmp 0x418aa6
mov eax, dword [ebp + 0x3ac]
push ebx
mov ebx, dword [ebp + 0x3ac]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x5259e0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x41897a
push 2
push ecx
push ecx
push dword [ebp + 0x3ac]
call fcn.00419c79
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x418a14
cmp dword [ebp + 0x3b4], ecx
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x68], ecx
jbe 0x418a77
jmp 0x41899e
xor ecx, ecx
mov dword [ebp - 0x6c], ecx
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x64]
cmp ecx, dword [ebp + 0x3b4]
jae 0x4189d9
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4189ca
inc dword [ebp - 0x78]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x6c]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x6c]
cmp dword [ebp - 0x6c], 0x400
jl 0x4189aa
mov edi, eax
lea eax, [ebp - 0x64]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x418a38
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x418a41
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp - 0x7c]
cmp eax, dword [ebp + 0x3b4]
jb 0x41899c
jmp 0x418a41
push ecx
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b4]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x418a38
mov eax, dword [ebp - 0x80]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x74], eax
jmp 0x418a41
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x74]
test eax, eax
jne 0x418aa1
cmp dword [ebp - 0x68], eax
je 0x418a74
push 5
pop esi
cmp dword [ebp - 0x68], esi
jne 0x418a69
call fcn.00417202
mov dword [eax], 9
call fcn.0041720b
mov dword [eax], esi
jmp 0x418a9c
push dword [ebp - 0x68]
call fcn.00417214
pop ecx
jmp 0x418a9c
mov edi, dword [ebp - 0x7c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x418a89
cmp byte [edi], 0x1a
jne 0x418a89
xor eax, eax
jmp 0x418aa4
call fcn.00417202
mov dword [eax], 0x1c
call fcn.0041720b
and dword [eax], 0
or eax, 0xffffffff
jmp 0x418aa4
sub eax, dword [ebp - 0x78]
pop esi
pop ebx
mov ecx, dword [ebp + 0x3a0]
xor ecx, ebp
pop edi
call fcn.0041848e
add ebp, 0x3a4
leave
ret
Function at 0x418ec0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x522848], ebx
push esi
push edi
jne 0x418f40
push str.user32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x418f7b
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x41dd4c
push edi
call esi
test eax, eax
mov dword [0x522848], eax
je 0x418f7b
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x52284c], eax
call esi
cmp dword [0x522668], 2
mov dword [0x522850], eax
jne 0x418f40
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x522858], eax
je 0x418f40
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x522854], eax
mov eax, dword [0x522854]
test eax, eax
je 0x418f85
call eax
test eax, eax
je 0x418f6c
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x522858]
test eax, eax
je 0x418f6c
test byte [ebp - 8], 1
jne 0x418f85
cmp dword [0x522674], 4
jb 0x418f7f
or byte [ebp + 0x12], 0x20
jmp 0x418fa4
xor eax, eax
jmp 0x418fb4
or byte [ebp + 0x12], 4
jmp 0x418fa4
mov eax, dword [0x52284c]
test eax, eax
je 0x418fa4
call eax
mov ebx, eax
test ebx, ebx
je 0x418fa4
mov eax, dword [0x522850]
test eax, eax
je 0x418fa4
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x522848]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x419449
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00417e90
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x4194e4
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x522668]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x4194e4
cmp eax, 1
je 0x419505
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x4194e4
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4194b1
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4194e0
xor eax, eax
inc eax
jmp 0x419524
cmp edi, eax
jae 0x4194e8
xor eax, eax
jmp 0x419524
cmp eax, esi
jae 0x4194ef
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov eax, dword [0x522668]
jmp 0x419508
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406371
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x238
mov eax, 0x40e86a
call fcn.0040d30f
mov dword [ebp - 0x21c], ecx
movzx eax, word [ebp + 8]
xor edi, edi
mov esi, dword [0x4166e8]
inc edi
push 0xf0
push eax
push esi
call dword [sym.imp.kernel32.dll_FindResourceW]
test eax, eax
je 0x4064e2
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
test eax, eax
je 0x4064e2
push eax
call dword [sym.imp.kernel32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4064e2
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x4064e2
mov ecx, dword [esi + 4]
mov ebx, eax
movzx eax, word [esi + 2]
add esi, 8
mov dword [ebp - 0x220], ecx
mov ecx, 0x403
cmp cx, ax
jne 0x40645b
push 3
lea eax, [ebp - 0x110]
push esi
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x114], eax
call main
push dword [ebp - 0x114]
mov eax, dword [ebp - 0x21c]
and dword [ebp - 4], 0
push 0
push 0x143
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
xor ecx, ecx
cmp eax, 0xffffffff
lea eax, [ebp - 0x110]
cmove edi, ecx
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x114], eax
je 0x4064d4
push dword [ebp - 0x114]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
jmp 0x4064d4
mov ecx, 0x1234
cmp cx, ax
jne 0x4064d4
or dword [ebp - 0x240], 0xffffffff
lea eax, [ebp - 0x214]
push 3
push esi
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x244], 1
mov dword [ebp - 0x218], eax
call main
mov eax, dword [ebp - 0x218]
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x23c], eax
cmp eax, ecx
je 0x4064ae
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
lea eax, [ebp - 0x244]
push eax
mov eax, dword [ebp - 0x21c]
push 0
push 0x40b
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
xor ecx, ecx
cmp eax, 0xffffffff
cmove edi, ecx
add esi, dword [ebp - 0x220]
test edi, edi
jne 0x4063c9
mov eax, edi
call fcn.0040d2ca
ret 4

Function at 0x409413
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x409422
pop dword [ebp - 0x44]
mov eax, 0xdfb9b638
sub eax, 0xdf792216
sub dword [ebp - 0x44], eax
push 0x40
push 0x1000
push 0x39a96
push 0
mov eax, 0x2b3e8685
sub eax, 0x2afd95f5
add eax, dword [ebp - 0x44]
call dword [eax]
mov ecx, 0x4d3e
xor edx, edx
add edx, eax
mov ebx, 0x9756febf
add ebx, 0x68eaab41
add ebx, dword [ebp - 0x44]
mov edi, 0xe510c3e4
sub edi, 0x5033b3c5
xor dword [ebp - 0x14], 0xc1c024a2
mov esi, dword [ebx]
sub dword [ebp - 0x20], esi
xor esi, edi
xor dword [ebp - 0x3c], edi
mov dword [edx], esi
add edx, 4
add ebx, 0xf5ad8005
sub ebx, 0xf5ad8001
loop 0x40947d
add eax, 0xdb4434aa
add eax, 0x24bcf321
mov ebx, eax
add eax, 0x562fd361
add eax, 0xa9d02ca4
mov ecx, 0x7dd50d45
add ecx, 0x826af2bb
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x10001b32
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x1000dfb6
call fcn.1000dd63
mov eax, dword [ebp + 0xc]
xor esi, esi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x418], esi
push 0x60
push esi
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x10001baf
push 2
push esi
push ebx
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x10001baf
call fcn.100012b3
mov esi, eax
jmp 0x10001cb5
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.kernel32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x10001bd2
call fcn.100012b3
jmp 0x10001ca8
push ebx
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x10001bc8
push ebx
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
lea eax, [ebx + 1]
cmp eax, ebx
jae 0x10001c05
mov esi, 0x8007000e
jmp 0x10001caa
push 2
pop ecx
mul ecx
mov byte [ebp - 4], cl
cmp edx, esi
ja 0x10001cd8
jb 0x10001c20
cmp eax, 0xffffffff
ja 0x10001cd8
cmp eax, 0x400
jbe 0x10001c35
push eax
lea ecx, [ebp - 0x418]
call fcn.10002fb4
jmp 0x10001c57
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x10001c57
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
je 0x10001bfb
push ebx
push dword [ebp - 0x418]
push ebx
push dword [ebp - 0x41c]
push esi
push 3
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x10001bc8
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.10002fb4
mov esi, eax
test edi, edi
je 0x10001cb5
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x10001cce
lea ecx, [ebp - 0x418]
call fcn.1000413e
mov eax, esi
call fcn.1000dcb8
ret 0x10
push 0x80070216
call fcn.10002fb4
int3

Function at 0x10002fb4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x10002fc3
pop dword [ebp - 0x18]
mov eax, 0x375aaa4d
sub eax, 0x275a7a8a
sub dword [ebp - 0x18], eax
push 0x40
push 0x1000
push 0x3940f
push 0
mov eax, 0x7c960741
add eax, 0x936ae993
add eax, dword [ebp - 0x18]
call dword [eax]
mov ecx, 0x49c6
xor edi, edi
add edi, eax
mov ebx, 0xb3f9624f
sub ebx, 0xa3f79e4f
add ebx, dword [ebp - 0x18]
mov esi, 0x1fed4aa2
xor dword [ebp - 4], 0x3757be80
mov edx, dword [ebx]
add dword [ebp - 0x10], edi
xor edx, esi
xor dword [ebp - 8], ecx
mov dword [edi], edx
xor dword [ebp - 0x14], edi
add edi, 0x34a4ebe3
add edi, 0xcb5b1421
add ebx, 0x6e77bda4
sub ebx, 0x6e77bda0
loop 0x10003018
add eax, 0x119eb
xor ebx, ebx
add ebx, eax
add eax, 0x66c77c98
sub eax, 0x66c77c93
mov ecx, 0x8b0ca2d7
add ecx, 0x84f35d29
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x100046d5
Capabilities:
Parse url

Disassembly:
push 0x4c
mov eax, 0x1000e1f1
call fcn.1000dcc4
mov dword [ebp - 0x1c], ecx
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x58]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x14]
add esp, 0xc
mov dword [ebp - 0x58], esi
push ebx
call fcn.10002fb4
and dword [ebp - 4], 0
mov esi, dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
push 5
push ebx
call esi
mov dword [ebp - 0x10], eax
test eax, eax
je 0x1000485a
push 6
push ebx
mov byte [ebp - 4], 1
call esi
mov edi, eax
mov dword [ebp - 0x18], edi
test edi, edi
je 0x1000485a
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.100049e9
mov esi, dword [ebp - 0x14]
mov ebx, eax
test ebx, ebx
js 0x1000483f
lea ecx, [ebp - 0x18]
call fcn.100049e9
mov ebx, eax
test ebx, ebx
js 0x1000483f
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x40], 0
je 0x1000483a
mov ebx, dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
push esi
call ebx
cmp eax, 0x8000
ja 0x1000483a
push esi
call ebx
cmp eax, 6
jb 0x1000483a
lea ecx, [ebp - 0x14]
call fcn.100049e9
mov ebx, eax
test ebx, ebx
js 0x1000483f
push str.http:
lea ecx, [ebp - 0x10]
call fcn.10002fb4
test al, al
je 0x100047c1
push str.https:
lea ecx, [ebp - 0x18]
call fcn.10002fb4
test al, al
jne 0x1000483a
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [ebp - 0x18], eax
movzx eax, word [eax]
test ax, ax
je 0x1000483a
mov ecx, eax
cmp cx, 0xd
je 0x1000483a
cmp cx, 0xa
je 0x1000483a
mov dword [ebp - 0x1c], 0x2f
lea eax, [edx + 1]
cmp word [ebp - 0x1c], cx
cmovne eax, edx
mov edx, eax
mov eax, dword [ebp - 0x18]
add eax, 2
mov dword [ebp - 0x18], eax
movzx eax, word [eax]
mov ecx, eax
test ax, ax
jne 0x100047d3
cmp edx, 3
jb 0x1000483a
xor eax, eax
inc eax
push esi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x50], eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
lea ecx, [ebp - 0x58]
push ecx
push 0
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x1000483f
mov ebx, 0x80070057
push edi
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call edi
push dword [ebp - 0x10]
call edi
push esi
call edi
mov eax, ebx
call fcn.1000dc98
ret 4
push 0x8007000e
call fcn.10002fb4
int3
Function at 0x401000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov eax, dword [0x40c05a]
shl eax, 2
mov dword [0x40c05e], eax
push edi
push ecx
xor eax, eax
mov edi, 0x40d914
mov ecx, 0x4123d8
cmp ecx, edi
jbe 0x401024
sub ecx, edi
cld
rep stosb byte es:[edi], al
pop ecx
pop edi
mov edx, dword fs:[4]
mov dword [0x40c06e], edx
mov eax, dword [edx - 8]
mov dword [0x40c066], eax
mov eax, dword [edx - 4]
mov dword [0x40c06a], eax
sub edx, 4
mov dword [0x412134], edx
sub edx, 4
cmp edx, esp
jae 0x401054
mov esp, edx
push 0
call fcn.004075d6
pop ecx
push 0x40c02c
push 0
call sub.KERNEL32.dll_GetModuleHandleA
mov dword [0x40c062], eax
push 0
jmp fcn.0040ad78

Function at 0x401c74
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
mov esi, 0x40ece4
mov edi, 0x40f80c
xor dword [0x40c0a8], 0x499602d2
mov eax, dword [0x40c0a8]
mov dword [esi], eax
xor ecx, ecx
xor edx, edx
mov eax, edx
shl eax, 5
add eax, edx
imul ebx, ecx, 0xa5
lea ebx, [edi + ebx*2]
xor dword [ebx + eax], 0x499602d2
mov eax, dword [ebx + eax]
add dword [esi], eax
xor eax, eax
mov ebx, edx
shl ebx, 5
add ebx, edx
imul ebp, ecx, 0xa5
lea ebp, [edi + ebp*2 + 4]
lea ebx, [ebp + ebx]
xor byte [ebx + eax], 0xd2
mov bl, byte [ebx + eax]
movsx ebx, bl
add dword [esi], ebx
inc eax
cmp eax, 0x19
jl 0x401cb5
inc edx
cmp edx, 0xa
jl 0x401c97
inc ecx
cmp ecx, 3
jl 0x401c95
mov eax, dword [esi]
add eax, dword [0x40f678]
mov dword [esi], eax
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x401e5b
Capabilities:
Set registry value

Disassembly:
push ebx
push ecx
cmp dword [0x40c08c], 0
je 0x401e6b
call fcn.00401cf7
push 0x40f684
push dword [0x40f680]
call sub.USER32.dll_GetWindowRect
mov eax, dword [0x40f684]
mov dword [0x40c09c], eax
mov edx, dword [0x40f688]
mov dword [0x40c0a0], edx
movsx ecx, byte [0x40c078]
imul eax, ecx, 0x3e8
add dword [0x40c088], eax
call fcn.00401c74
push esp
push 0x40c3bf
push 0x80000002
call sub.ADVAPI32.dll_RegCreateKeyA
push 0x40e40c
call fcn.004054ec
pop ecx
push eax
push 0x40e40c
push 1
push 0x40c3d9
push dword [esp + 0x10]
call sub.ADVAPI32.dll_RegSetValueA
push 0x40e80c
call fcn.004054ec
pop ecx
push eax
push 0x40e80c
push 1
push 0x40c3de
push dword [esp + 0x10]
call sub.ADVAPI32.dll_RegSetValueA
xor edx, edx
mov dword [0x40f64c], edx
push 1
push 0x40c079
call fcn.00401e29
add esp, 8
push 4
push 0x40c09c
call fcn.00401e29
add esp, 8
push 4
push 0x40c0a0
call fcn.00401e29
add esp, 8
push 4
push 0x40c088
call fcn.00401e29
add esp, 8
push 4
push 0x40c0a8
call fcn.00401e29
add esp, 8
push 4
push 0x40c08c
call fcn.00401e29
add esp, 8
push 4
push 0x40c090
call fcn.00401e29
add esp, 8
push 4
push 0x40f668
call fcn.00401e29
add esp, 8
push 0xc
push 0x40c07c
call fcn.00401e29
add esp, 8
push 0x144
push 0x40c0ac
call fcn.00401e29
add esp, 8
push 0x3de
push 0x40f80c
call fcn.00401e29
add esp, 8
push 2
push 0x40c094
call fcn.00401e29
add esp, 8
push 2
push 0x40c096
call fcn.00401e29
add esp, 8
push 2
push 0x40c09a
call fcn.00401e29
add esp, 8
push 2
push 0x40c098
call fcn.00401e29
add esp, 8
push 4
push 0x40ece4
call fcn.00401e29
add esp, 8
push 4
push 0x40f678
call fcn.00401e29
add esp, 8
push 4
push 0x40ece8
call fcn.00401e29
add esp, 8
push dword [0x40f64c]
push 0x40f0ec
push 3
push 0
push 0x40c3e4
push dword [esp + 0x14]
call sub.ADVAPI32.dll_RegSetValueExA
push dword [esp]
call sub.ADVAPI32.dll_RegCloseKey
push 0x40c3e9
push 0x40ec7c
call fcn.00407c7c
add esp, 8
mov ebx, eax
push ebx
push 1
push 4
push 0x40f678
call fcn.00408068
add esp, 0x10
push ebx
push 1
push 4
push 0x40ece0
call fcn.00408068
add esp, 0x10
pop edx
pop ebx
ret
Function at 0x40240d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, 0x40dc38
mov ebx, 0x40f65c
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push dword [ebp + 8]
call sub.KERNEL32.dll_CreateFileA
mov edi, eax
mov dword [0x40ec78], edi
push 0
push 0x40f674
push 1
push 0x40e004
push edi
call sub.KERNEL32.dll_WriteFile
push 0
push 0x40f674
push 4
push 0x40c0a4
push dword [0x40ec78]
call sub.KERNEL32.dll_WriteFile
xor eax, eax
mov edx, dword [eax*4 + 0x40ec60]
mov ecx, dword [eax*4 + 0x40ec6c]
lea ecx, [ecx + ecx*8]
add edx, ecx
add edx, edx
lea edx, [edx + edx*4]
add dword [ebx + eax*4], edx
inc eax
cmp eax, 3
jl 0x40246e
push 0
push 0x40f674
push 0xc
push ebx
push dword [0x40ec78]
call sub.KERNEL32.dll_WriteFile
xor eax, eax
mov ecx, dword [eax*4 + 0x40ec60]
mov edx, dword [eax*4 + 0x40ec6c]
lea edx, [edx + edx*8]
add ecx, edx
add ecx, ecx
lea ecx, [ecx + ecx*4]
sub dword [ebx + eax*4], ecx
inc eax
cmp eax, 3
jl 0x4024a6
xor edx, edx
xor eax, eax
lea ecx, [edx + edx*8]
lea ebx, [esi + ecx*4]
cmp dword [ebx + eax*4], 0xffffffff
jne 0x4024e3
add ecx, 0x40ec0c
mov byte [ecx + eax], 0xff
jmp 0x4024f2
lea ebx, [esi + ecx*4]
mov bl, byte [ebx + eax*4]
add ecx, 0x40ec0c
mov byte [ecx + eax], bl
inc eax
cmp eax, 9
jl 0x4024cb
inc edx
cmp edx, 9
jl 0x4024c9
push 0
push 0x40f674
push 2
push 0x40f668
push dword [0x40ec78]
call sub.KERNEL32.dll_WriteFile
push 0
push 0x40f674
push 0x51
push 0x40ec0c
push dword [0x40ec78]
call sub.KERNEL32.dll_WriteFile
push dword [0x40ec78]
call sub.KERNEL32.dll_CloseHandle
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x402540
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov esi, 0x40ec0c
xor eax, eax
mov dword [ebp - 4], eax
test ebx, ebx
je 0x4026a6
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push ebx
call sub.KERNEL32.dll_CreateFileA
mov dword [0x40ec78], eax
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x4026a6
push 0
push 0x40f674
push 1
push 0x40e004
push dword [0x40ec78]
call sub.KERNEL32.dll_ReadFile
push 0
push 0x40f674
push 4
push 0x40c0a4
push dword [0x40ec78]
call sub.KERNEL32.dll_ReadFile
push 0
push 0x40f674
push 0xc
push 0x40f65c
push dword [0x40ec78]
call sub.KERNEL32.dll_ReadFile
push 0
push 0x40f674
push 2
lea edx, [ebp - 4]
push edx
push dword [0x40ec78]
call sub.KERNEL32.dll_ReadFile
mov ecx, dword [ebp - 4]
mov dword [0x40f668], ecx
push 0
push 0x40f674
push 0x51
push esi
push dword [0x40ec78]
call sub.KERNEL32.dll_ReadFile
push dword [0x40ec78]
call sub.KERNEL32.dll_CloseHandle
xor edx, edx
xor eax, eax
lea ecx, [edx + edx*8]
lea ebx, [esi + ecx]
movsx ebx, byte [ebx + eax]
cmp ebx, 0xff
jne 0x402638
lea ecx, [ecx*4 + 0x40dc38]
mov dword [ecx + eax*4], 0xffffffff
jmp 0x40264c
lea ebx, [edx + edx*8]
lea ebx, [esi + ebx]
movsx ebx, byte [ebx + eax]
lea ecx, [ecx*4 + 0x40dc38]
mov dword [ecx + eax*4], ebx
inc eax
cmp eax, 9
jl 0x402616
inc edx
cmp edx, 9
jl 0x402614
xor ecx, ecx
mov esi, dword [ecx*4 + 0x40f65c]
mov eax, esi
mov ebx, 0xa
cdq
idiv ebx
mov ebx, eax
mov eax, ebx
mov edi, 9
cdq
idiv edi
mov dword [ecx*4 + 0x40ec60], edx
mov eax, ebx
mov ebx, 9
cdq
idiv ebx
mov dword [ecx*4 + 0x40ec6c], eax
mov eax, esi
mov ebx, 0xa
cdq
idiv ebx
mov dword [ecx*4 + 0x40f65c], edx
inc ecx
cmp ecx, 3
jl 0x40265a
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x402dcc
Capabilities:
Query or enumerate registry value

Disassembly:
add esp, 0xffffff34
push 0x411ad8
push 0x40c448
push 0x80000002
call sub.ADVAPI32.dll_RegOpenKeyA
mov dword [esp], 0x64
push esp
push 0x411adc
push 0x40c462
push dword [0x411ad8]
call sub.ADVAPI32.dll_RegQueryValueA
mov dword [esp], 0x64
push esp
lea eax, [esp + 8]
push eax
push 0x40c46a
push dword [0x411ad8]
call sub.ADVAPI32.dll_RegQueryValueA
mov dword [esp], 0x64
push esp
lea edx, [esp + 0x6c]
push edx
push 0x40c473
push dword [0x411ad8]
call sub.ADVAPI32.dll_RegQueryValueA
push dword [0x411ad8]
call sub.ADVAPI32.dll_RegCloseKey
lea ecx, [esp + 4]
push ecx
lea eax, [esp + 0x6c]
push eax
call fcn.00402d46
add esp, 8
test eax, eax
jne 0x402e62
xor eax, eax
jmp 0x402e67
mov eax, 0x411adc
add esp, 0xcc
ret