joyce8/EMBER2024-capa huggingface dataset:
Function at 0x550a54
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffa84
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x57c], ecx
mov dword [ebp - 0x578], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040583c
mov eax, dword [ebp - 8]
call fcn.0040583c
lea edi, [ebp - 0x18]
xor eax, eax
push ebp
push 0x550cca
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x24]
push eax
mov edx, dword [ebp - 4]
mov eax, 0x550ce4
call fcn.00405990
mov ecx, eax
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.004058ac
lea eax, [ebp - 0x28]
push eax
mov edx, dword [ebp - 4]
mov eax, 0x550ce4
call fcn.00405990
inc eax
push eax
mov eax, dword [ebp - 4]
call fcn.0040564c
mov ecx, eax
mov eax, dword [ebp - 4]
pop edx
call fcn.004058ac
mov eax, 6
call fcn.00403948
mov ebx, eax
add ebx, 3
cmp ebx, 3
jl 0x550ae7
cmp ebx, 9
jg 0x550ae7
mov esi, ebx
test esi, esi
jle 0x550b25
lea edx, [ebp - 0x578]
mov eax, dword [ebp - 0x28]
call fcn.004c497c
mov edx, dword [ebp - 0x578]
lea eax, [ebp - 0x28]
call fcn.00405424
dec esi
jne 0x550b06
lea ecx, [ebp - 0x1c]
mov edx, 0x550cf0
mov eax, 0x1b
call fcn.004c5bdc
lea ecx, [ebp - 0x20]
mov edx, 0x550cf0
mov eax, 0x43
call fcn.004c5bdc
lea edx, [ebp - 0x57c]
mov eax, ebx
call fcn.0040a528
mov eax, dword [ebp - 0x57c]
mov al, byte [eax]
push eax
lea eax, [ebp - 0x1c]
call fcn.004058a4
pop edx
mov byte [eax + 0xb], dl
push dword [ebp - 0x24]
push 0x550d38
push dword [ebp - 0x1c]
push dword [ebp - 0x28]
push dword [ebp - 0x20]
lea eax, [ebp - 4]
mov edx, 5
call fcn.0040570c
push 0
push 0
push 0
push 0
push 0x550d40
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x550c8b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0040584c
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetOpenUrlA
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x550c6d
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x574]
call fcn.00403464
mov edx, 1
lea eax, [ebp - 0x574]
call fcn.00403c58
push edi
push 0x400
lea eax, [ebp - 0x428]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetReadFile
push 0
lea edx, [ebp - 0x428]
mov ecx, dword [edi]
lea eax, [ebp - 0x574]
call fcn.004035c0
mov eax, dword [0x564b24]
mov eax, dword [eax]
call fcn.0046c304
cmp dword [edi], 0
je 0x550c39
cmp dword [edi], 0x2dc6c0
jbe 0x550bf5
lea eax, [ebp - 0x574]
call fcn.004035e0
cmp dword [edi], 0x2dc6c0
jbe 0x550c52
mov byte [ebp - 9], 0
jmp 0x550c56
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x550c74
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
Function at 0x5557b4
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffa98
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
lea edi, [ebp - 0x18]
xor ebx, ebx
push 0
push 0
push 0
push 0
push 0x5558f0
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x5558df
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0040584c
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetOpenUrlA
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x5558c1
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x564]
call fcn.00403464
mov edx, 1
lea eax, [ebp - 0x564]
call fcn.00403c58
push edi
push 0x400
lea eax, [ebp - 0x418]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetReadFile
push 0
lea edx, [ebp - 0x418]
mov ecx, dword [edi]
lea eax, [ebp - 0x564]
call fcn.004035c0
add ebx, dword [edi]
mov dword [ebp - 0x568], ebx
fild dword [ebp - 0x568]
fdiv dword [0x555900]
call fcn.00403144
mov edx, eax
mov eax, dword [esi + 0x2f8]
call fcn.0043cbc8
mov eax, dword [0x564b24]
mov eax, dword [eax]
call fcn.0046c304
cmp dword [edi], 0
jne 0x555839
lea eax, [ebp - 0x564]
call fcn.004035e0
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5558c8
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
Function at 0x55a1cc
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe14
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x1ec], eax
mov dword [ebp - 0x1e8], eax
mov dword [ebp - 0x1e4], eax
mov dword [ebp - 0x1d8], eax
mov dword [ebp - 0x1e0], eax
mov dword [ebp - 0x1dc], eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x55a3db
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 4], eax
call fcn.00556c14
test al, al
jne 0x55a3b5
push 0
call sub.ole32.dll_CoInitialize
call fcn.004c65dc
test al, al
je 0x55a23b
call sub.ole32.dll_CoUninitialize
jmp 0x55a3b5
push 0
push 0
lea edx, [ebp - 0x1dc]
mov eax, dword [ebp + 8]
call fcn.0040a528
mov ecx, dword [ebp - 0x1dc]
lea eax, [ebp - 0x1d8]
mov edx, 0x55a3f8
call fcn.00405698
mov eax, dword [ebp - 0x1d8]
push eax
lea eax, [ebp - 0x1e0]
call fcn.004c6424
lea eax, [ebp - 0x1e0]
mov edx, 0x55a46c
call fcn.00405654
mov edx, dword [ebp - 0x1e0]
xor ecx, ecx
pop eax
call fcn.004c6154
test al, al
je 0x55a3b5
xor edx, edx
push ebp
push 0x55a32f
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x1e4]
call fcn.004c6424
lea eax, [ebp - 0x1e4]
mov edx, 0x55a46c
call fcn.00405654
mov edx, dword [ebp - 0x1e4]
lea eax, [ebp - 0x1d4]
call fcn.00403464
lea eax, [ebp - 0x1d4]
call fcn.004031e8
call fcn.00402d3c
lea edx, [ebp - 8]
lea eax, [ebp - 0x1d4]
call fcn.00403a98
lea eax, [ebp - 0x1d4]
call fcn.00403b04
call fcn.00402d3c
lea eax, [ebp - 0x1d4]
call fcn.004035e0
call fcn.00402d3c
mov ecx, dword [ebp - 8]
mov edx, 0x55a488
mov eax, 0x55a4a8
call fcn.004c67b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x55a37d
lea eax, [ebp - 0x1ec]
call fcn.004c6424
lea eax, [ebp - 0x1ec]
mov edx, 0x55a46c
call fcn.00405654
mov eax, dword [ebp - 0x1ec]
call fcn.0040584c
push eax
call sub.kernel32.dll_DeleteFileA
mov dword [ebp - 4], 1
call sub.ole32.dll_CoUninitialize
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x55a3e2
lea eax, [ebp - 0x1ec]
mov edx, 6
call fcn.004053b0
lea eax, [ebp - 8]
call fcn.0040538c
ret
Function at 0x4076ab
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov edi, dword [ebp + 8]
mov edi, dword [edi]
push edi
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
pop edi
mov esi, ecx
not esi
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0xc]
lea eax, [eax + 0x10]
push dword [eax]
xor eax, eax
push edx
mov ecx, dword [edx + 0x30]
movzx ebx, byte [eax + edi]
movzx edx, byte [ecx + eax*2]
sub ebx, edx
cmp ebx, 0
je 0x4076f2
cmp ebx, 0x20
je 0x4076f2
cmp ebx, 0xffffffe0
je 0x4076f2
jne 0x4076fb
add eax, 1
cmp esi, eax
je 0x407708
jne 0x4076d7
pop edx
mov edx, dword [edx]
xor eax, eax
pop ebx
cmp ebx, edx
push ebx
je 0x40770c
jne 0x4076d3
pop edx
mov eax, dword [edx + 0x18]
leave
ret 4

Function at 0x407720
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
sub esp, 0x10
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ecx, dword [edx]
test eax, eax
je 0x4077e1
test ecx, ecx
je 0x4077e1
mov ebx, dword [eax + 0x3c]
mov edx, dword [ebx + eax + 0x78]
mov ebx, dword [ebx + eax + 0x7c]
test edx, edx
je 0x4077e1
test ebx, ebx
je 0x4077e1
mov ebx, eax
add ebx, edx
je 0x4077e1
mov esi, dword [edx + eax + 0x18]
test esi, esi
je 0x4077e1
cmp dword [edx + eax + 0x14], 0
je 0x4077e1
mov edi, dword [edx + eax + 0x20]
mov ebx, dword [edx + eax + 0x24]
add edi, eax
mov edx, dword [edx + eax + 0x1c]
add ebx, eax
add edx, eax
test esi, esi
jbe 0x4077e1
mov dword [esp], edx
xor ebp, ebp
mov dword [esp + 0xc], edi
mov dword [esp + 4], esi
mov dword [esp + 8], ecx
mov eax, dword [esp + 0xc]
mov edi, dword [esp + 8]
movzx ecx, word [ebx + ebp*2]
mov esi, dword [eax + ebp*4]
add esi, dword [esp + 0x24]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x4077d1
test dl, dl
je 0x4077cd
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x4077d1
add edi, 2
add esi, 2
test dl, dl
jne 0x4077b1
xor eax, eax
jmp 0x4077d6
sbb eax, eax
or eax, 1
test eax, eax
je 0x4077ed
inc ebp
cmp ebp, dword [esp + 4]
jb 0x40779e
xor eax, eax
add esp, 0x10
pop ebx
pop edi
pop esi
pop ebp
ret 8
mov edx, dword [esp]
mov edx, dword [edx + ecx*4]
mov eax, dword [esp + 0x24]
add eax, edx
add esp, 0x10
pop ebx
pop edi
pop esi
pop ebp
ret 8
Function at 0x40a4e2
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x40a50b
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x40a507
imul eax, dword [ebx]
jmp 0x40a4fc
mov ecx, eax
test ecx, ecx
je 0x40a54e
push ecx
push ebx
mov ebx, dword [ebx]
push ebx
add ebx, 0xc
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x40a529
push ebx
call fcn.0041d3bc
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x40a53d
push ebx
call fcn.0041d3bc
add esp, 4
pop ebx
call fcn.0041d3bc
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x40a511
call fcn.0041d3bc
add esp, 4
mov eax, 0x4372e6
mov ebx, dword [ebp + 8]
mov dword [ebx], eax
push dword [ebp + 8]
call fcn.0040a58d
push eax
push 0x40ae77
xor eax, eax
call dword [sym.imp.USER32.dll_EnumWindows]
nop
nop
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
call fcn.00405b06
jmp 0x40a587
mov esp, ebp
pop ebp
ret 8

Function at 0x40a9b7
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
nop
nop
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40a9f2
mov eax, 0x4372e6
jmp 0x40aa82
inc dword [ebp - 4]
fild dword [ebp - 4]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fmul qword [0x4374b1]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
call fcn.004012e6
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x1bc
call fcn.0041e6c0
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40aa40
push ebx
call fcn.0041d3bc
add esp, 4
pop eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.0040aa9a
mov dword [ebp - 0xc], eax
push dword [ebp - 4]
push dword [ebp - 0xc]
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
nop
nop
mov eax, dword [ebp - 8]
test eax, eax
je 0x40aa7d
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0041d3c8
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x40aa82
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40aa93
push ebx
call fcn.0041d3bc
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4
Function at 0x412d5b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
nop
nop
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
push dword [ebx]
mov ebx, dword [ebp + 8]
push dword [ebx]
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
nop
nop
mov dword [ebp - 8], eax
push dword [ebp - 8]
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
nop
nop
mov dword [ebp - 0xc], eax
push dword [ebp - 8]
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
nop
nop
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
nop
nop
mov dword [ebp - 0x14], eax
push 0x80000301
push 0
push dword [ebp - 0xc]
push 0x80000301
push 0
push dword [ebp - 0x14]
push 2
mov ebx, 0x910
call fcn.0041e4c0
add esp, 0x1c
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
jmp 0x412e1a
mov esp, ebp
pop ebp
ret 4

Function at 0x4138c4
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.004139e5
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x41390d
push ebx
call fcn.0041d3bc
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0
push 0
mov eax, dword [ebp - 4]
test eax, eax
je 0x413925
add eax, 8
push eax
xor eax, eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop
nop
mov dword [ebp - 8], eax
fild dword [ebp - 8]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
fmul qword [0x4374b1]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
call fcn.004012e6
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x1bc
call fcn.0041e6c0
add esp, 0x10
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x41397e
push ebx
call fcn.0041d3bc
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040663d
mov dword [ebp - 0x10], eax
push dword [ebp - 8]
push dword [ebp - 0x10]
mov eax, dword [ebp - 4]
test eax, eax
je 0x41399e
add eax, 8
push eax
xor eax, eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop
nop
lea eax, [ebp - 0xc]
push eax
call fcn.00413b85
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
jmp 0x4139bd
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4139ce
push ebx
call fcn.0041d3bc
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4139de
push ebx
call fcn.0041d3bc
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4
Function at 0x41c392
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
lea eax, [ebp - 8]
push eax
mov ebx, dword [ebp + 0xc]
push dword [ebx]
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
nop
nop
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x41c3de
add eax, 8
push eax
mov eax, 7
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
mov ebx, dword [ebp + 0x10]
push dword [ebx]
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
nop
nop
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [ebp - 0x10]
push 1
mov ebx, 0x1bc
call fcn.0041e6c0
add esp, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x41c438
push ebx
call fcn.0041d3bc
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x41c44a
add eax, 8
push eax
mov eax, 7
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
mov ebx, dword [ebp + 0x10]
push dword [ebx]
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
nop
nop
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41c485
mov eax, 0x4372e6
jmp 0x41c4a4
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x41c49f
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0041d3c8
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x41c4a4
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x41c4b5
push ebx
call fcn.0041d3bc
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x10

Function at 0x41e3b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x41e442
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x41e434
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x41e42c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x41e3f5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
Function at 0x41e450
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x41e4b9
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.0041d950
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret

Function at 0x41e680
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x41e69e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x41e693
pop esi
ret

Function at 0x4201f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, edx
push esi
push edi
mov esi, ebp
xor edi, edi
and esi, 3
mov eax, ecx
jle 0x420211
mov dl, byte [eax]
inc eax
cmp dl, bl
je 0x42026b
inc edi
cmp edi, esi
jl 0x420205
mov edi, ebx
and edi, 0xff
mov esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
lea edi, [ecx + ebp]
cmp eax, edi
jae 0x4202a0
mov edx, dword [eax]
xor edx, esi
lea ebp, [edx - 0x1010101]
not edx
and ebp, edx
test ebp, 0x80808080
je 0x42025a
cmp byte [eax], bl
je 0x420275
cmp byte [eax + 1], bl
je 0x42027e
cmp byte [eax + 2], bl
je 0x420288
cmp byte [eax + 3], bl
je 0x420294
add eax, 4
cmp eax, edi
jb 0x420231
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
dec eax
pop ebx
ret 4
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
inc eax
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 2
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 3
pop ebx
ret 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4

Function at 0x42fdd5
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x42fe03
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42fe21
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0042fd3b
jmp 0x42fe21
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42fe21
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0042fd3b
test edi, edi
mov eax, edi
jne 0x42fe0b
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40625c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x406281
mov eax, dword [0x40a880]
cmp eax, 0xffffffff
je 0x406278
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40a880], 0xffffffff
jmp 0x4062f4
cmp dword [0x440a20], ebx
je 0x4062f4
cmp byte [0x440620], bl
je 0x4062c0
cmp dword [0x40a880], 0xffffffff
jne 0x4062c9
push 4
push 0x40000000
push 0x440620
call fcn.00405c10
cmp eax, 0xffffffff
mov dword [0x40a880], eax
je 0x4062f4
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40a880], 0xffffffff
je 0x4062f4
push esi
mov esi, 0x444a40
push 0x40aac8
push esi
call fcn.00405f5e
lea eax, [ebp + 8]
push ebx
push eax
push esi
call fcn.00405f51
push eax
push esi
push dword [0x40a880]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

Function at 0x4064a6
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x44021c], esi
push edi
jne 0x4064e0
mov ecx, 0x440218
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x4064bc
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x440618
jl 0x4064b7
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x406515
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x440218]
xor eax, esi
inc ecx
dec edx
jne 0x4064f8
pop edi
pop esi
not eax
ret 0xc

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x405770
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
mov eax, dword [0x5507a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
mov dword [ebp - 0x814], 0
push 0x7fe
push eax
mov word [ebp - 0x804], ax
mov edi, edx
lea eax, [ebp - 0x802]
mov esi, ecx
push eax
call fcn.004d8800
add esp, 0xc
mov dword [ebp - 0x810], 0
cmp dword [edi + 0x14], 8
jb 0x4057c3
mov edi, dword [edi]
lea eax, [ebp - 0x810]
push eax
push edi
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40581e
mov dword [ebp - 0x808], eax
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0x804]
mov dword [ebp - 0x80c], 0x800
push eax
lea eax, [ebp - 0x808]
push eax
push 0
push str.InstallDir
push dword [ebp - 0x810]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x810]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp word [ebp - 0x804], ax
jne 0x40583e
xor ecx, ecx
jmp 0x405856
lea ecx, [ebp - 0x804]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405847
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x804]
mov ecx, esi
push eax
call fcn.004040e0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004ce3d2
mov esp, ebp
pop ebp
ret