joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1006f390
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.1006f3a0

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x1006f62c
pop ebp
ret
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.1006f640

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

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x1007146e
cmp dword [edi + 0x20], 0
je 0x1007146e
cmp dword [edi + 0x24], 0
je 0x1007146e
mov esi, dword [edi + 0x1c]
test esi, esi
je 0x1007146e
cmp dword [esi], edi
jne 0x1007146e
mov eax, dword [esi + 4]
cmp eax, 0x2a
je 0x10071348
cmp eax, 0x39
je 0x10071348
cmp eax, 0x45
je 0x10071348
cmp eax, 0x49
je 0x10071348
cmp eax, 0x5b
je 0x10071348
cmp eax, 0x67
je 0x10071348
cmp eax, 0x71
je 0x10071348
cmp eax, 0x29a
jne 0x1007146e
mov dword [edi + 0x14], 0
mov dword [edi + 8], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x2c], 2
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 8]
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], eax
test ecx, ecx
jns 0x1007137d
neg ecx
mov dword [esi + 0x18], ecx
push 0
push 0
push 0
cmp ecx, 2
jne 0x10071396
mov dword [esi + 4], 0x39
call fcn.1006f620
jmp 0x100713ad
test ecx, ecx
mov edx, 0x2a
mov eax, 0x71
cmovne eax, edx
mov dword [esi + 4], eax
call fcn.1006f390
add esp, 0xc
mov dword [edi + 0x30], eax
mov dword [esi + 0x28], 0
push esi
call fcn.10072d50
mov esi, dword [edi + 0x1c]
xor edx, edx
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x4c]
add eax, eax
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x44]
mov word [eax + ecx*2 - 2], dx
mov eax, dword [esi + 0x4c]
lea eax, [eax*2 - 2]
push eax
push edx
push dword [esi + 0x44]
call fcn.100b1050
mov eax, dword [esi + 0x84]
add esp, 0x10
lea ecx, [eax + eax*2]
movzx eax, word [ecx*4 + 0x10101efa]
mov dword [esi + 0x80], eax
movzx eax, word [ecx*4 + 0x10101ef8]
mov dword [esi + 0x8c], eax
movzx eax, word [ecx*4 + 0x10101efc]
mov dword [esi + 0x90], eax
xor eax, eax
movzx ecx, word [ecx*4 + 0x10101efe]
pop edi
mov dword [esi + 0x7c], ecx
mov dword [esi + 0x6c], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x16b4], 0
mov dword [esi + 0x78], 2
mov dword [esi + 0x60], 2
mov dword [esi + 0x68], 0
mov dword [esi + 0x48], 0
pop esi
pop ebp
ret
pop edi
mov eax, 0xfffffffe
pop esi
pop ebp
ret
Function at 0x100790d0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x18]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 4]
sub ecx, dword [eax]
sar ecx, 3
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
jmp 0x1007911c
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x14]
jae 0x10079184
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
movzx eax, word [edx + ecx*8 + 4]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
movzx eax, word [edx + ecx*8 + 6]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.10079bb0
add esp, 4
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 4]
mov byte [edx], al
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + eax*8]
push edx
call fcn.100791c0
add esp, 4
mov ecx, dword [ebp - 0x1c]
add ecx, dword [ebp - 4]
mov byte [ecx], al
mov edx, dword [ebp - 0x20]
push edx
call fcn.10079bf0
add esp, 4
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 4]
mov byte [ecx], al
jmp 0x10079113
mov edx, dword [ebp + 8]
cmp dword [edx + 0x24], 1
jne 0x1007919a
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x28]
mov edx, dword [ebp - 0xc]
mov byte [edx + ecx], 0x23
mov eax, dword [ebp + 8]
cmp dword [eax + 0x24], 2
jne 0x100791b0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x28]
mov eax, dword [ebp - 0x10]
mov byte [eax + edx], 0x34
mov esp, ebp
pop ebp
ret

Function at 0x1009fab0
Capabilities:
Hash data using murmur3

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
shr eax, 0xf
xor eax, dword [ebp + 8]
mov dword [ebp + 8], eax
imul ecx, dword [ebp + 8], 0x85ebca77
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 8]
shr edx, 0xd
xor edx, dword [ebp + 8]
mov dword [ebp + 8], edx
imul eax, dword [ebp + 8], 0xc2b2ae3d
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 8]
shr ecx, 0x10
xor ecx, dword [ebp + 8]
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 8]
pop ebp
ret
Function at 0x100bbc87
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.100b02e0
mov eax, dword [0x10126a94]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.100c819e
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x100bbcc9
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x100bbe25
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.100f0a50
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x10129360]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.100cf6c7
mov ecx, dword [esi*4 + 0x10129360]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x100bbe1e
cmp eax, dword [edi + ecx + 0x24]
jne 0x100bbe1e
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100bbe1e
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100cf6c7
add esp, 0x14
test edx, edx
jl 0x100bbe1e
jg 0x100bbd94
test eax, eax
jb 0x100bbe1e
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x100bbe1e
jl 0x100bbdae
cmp dword [ebp - 0x1008], eax
ja 0x100bbe1e
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x100bbdcc
test ebx, ebx
je 0x100bbe05
cmp ecx, edi
jae 0x100bbe05
mov al, byte [ecx]
cmp al, 0xd
jne 0x100bbde6
lea eax, [edi - 1]
cmp ecx, eax
jae 0x100bbdf2
cmp byte [ecx + 1], 0xa
jne 0x100bbdf2
inc ecx
jmp 0x100bbdf2
movzx eax, al
movsx eax, byte [eax + 0x10126e68]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x100bbdcc
cmp edx, ebx
jne 0x100bbdcc
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x100bbe23
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.100af7bb
leave
ret
Function at 0x100cdb5c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1010c978
push 0x1010c970
push str.FlsAlloc
push 0x1e
call fcn.100cd9c9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100cdb90
push dword [ebp + 8]
mov ecx, esi
call dword [0x100f3244]
call esi
jmp 0x100cdb96
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100cdbda
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1010c988
push 0x1010c980
push str.FlsGetValue
push 0x20
call fcn.100cd9c9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100cdc11
push dword [ebp + 8]
mov ecx, esi
call dword [0x100f3244]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100ce29b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x10129360]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100ce2db
cmp byte [ebx], 0xa
jne 0x100ce2db
or byte [eax + edi + 0x28], 4
jmp 0x100ce2e0
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x100ce3de
mov al, byte [edx]
cmp al, 0x1a
je 0x100ce3c0
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x100ce30f
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x100ce334
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x100ce33e
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x100ce2f1
jmp 0x100ce3de
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100ce3bb
cmp dword [ebp - 0xc], 0
je 0x100ce3bb
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x10129360]
test byte [eax + edi + 0x28], 0x48
je 0x100ce395
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x100ce380
mov byte [esi], dl
jmp 0x100ce391
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10129360]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x100ce3de
cmp byte [ebp - 1], 0xa
jne 0x100ce3a4
cmp esi, ebx
jne 0x100ce3a4
mov byte [esi], 0xa
jmp 0x100ce3dd
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100cf6e5
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x100ce3de
mov byte [esi], 0xd
jmp 0x100ce3dd
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x10129360]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100ce3da
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100ce3de
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100ce3e7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x10129360]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100ce42a
cmp word [esi], dx
jne 0x100ce42a
or byte [edi + eax + 0x28], 4
jmp 0x100ce42f
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x100ce568
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x100ce548
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x100ce471
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x100ce4a7
cmp eax, edx
jae 0x100ce4b3
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x100ce449
jmp 0x100ce568
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100ce544
cmp dword [ebp - 0x14], 0
je 0x100ce544
mov eax, dword [ebx*4 + 0x10129360]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x100ce51c
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x100ce562
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x10129360]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x10129360]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x10129360]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x100ce565
pop ebx
cmp word [ebp - 4], bx
jne 0x100ce52d
cmp esi, dword [ebp + 0xc]
jne 0x100ce52d
mov word [esi], bx
jmp 0x100ce565
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.100cf6e5
add esp, 0x10
cmp word [ebp - 4], bx
je 0x100ce568
push 0xd
jmp 0x100ce561
mov ecx, dword [ebx*4 + 0x10129360]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100ce55f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100ce568
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100ced89
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100cebfa
Function at 0x100d503e
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x100d50db
push ebx
push esi
call fcn.100d5007
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.100d19f1
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100d5088
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100d50da
push edi
push eax
call fcn.100cb4e8
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100d50a8
call fcn.100c7efb
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100d50d9
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100d19f1
add esp, 0x20
test eax, eax
jne 0x100d50c7
push edi
call fcn.100c7efb
jmp 0x100d50cf
push ebx
call fcn.100c7efb
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x100d50de
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x100d50ef
pop esi
ret
push ebx
push edi
push esi
call fcn.100d5007
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.100cb4e8
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x100d5117
push ebx
push esi
push edi
call fcn.100b0ad0
add esp, 0xc
push 0
call fcn.100c7efb
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x100d5863
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100d538a
Function at 0x100db5bd
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100db539
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x100db735
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x100db735
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x100db6e4
jg 0x100db616
test eax, eax
je 0x100db6da
push 1
push 0x1000
call fcn.100cc645
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x100db63c
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x100db6d1
push 0x8000
push ebx
call fcn.100db46a
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x100db668
jg 0x100db663
cmp ecx, 0x1000
jb 0x100db668
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.100caf6b
add esp, 0x10
cmp eax, 0xffffffff
je 0x100db6ad
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x100db663
jl 0x100db694
test ecx, ecx
jne 0x100db655
push dword [ebp - 0xc]
push ebx
call fcn.100db46a
push esi
call fcn.100c7efb
add esp, 0xc
xor edi, edi
jmp 0x100db746
cmp byte [edi + 0x24], 0
je 0x100db6c4
cmp dword [edi + 0x20], 5
jne 0x100db6c4
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x100db6cf
mov edi, dword [edi + 0x18]
jmp 0x100db6d1
xor edi, edi
push esi
call fcn.100c7efb
pop ecx
jmp 0x100db746
test ecx, ecx
jg 0x100db6a6
jl 0x100db6e4
test eax, eax
jae 0x100db6a6
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100cf6e5
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x100db707
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x100db6a6
jmp 0x100db73e
push ebx
call fcn.100d5d59
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x100db6a6
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x100db746
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x100db743
mov edi, dword [edi + 0x18]
jmp 0x100db746
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.100cf6e5
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401020
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401039
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401074
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401070
lea ebx, [ebx]
cmp esi, eax
jae 0x401074
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401060
cmp esi, eax
jb 0x40107a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x407a30
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0xa8], 0
je 0x407a42
xor eax, eax
pop esi
pop ecx
ret
lea eax, [esp + 4]
push eax
push 0
push esi
push 0x4079f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0xa8], eax
je 0x407a3d
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, 1
pop esi
pop ecx
ret
Function at 0x40dcb0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4af2fb
mov eax, dword fs:[0]
push eax
sub esp, 0x4a4
mov eax, dword [0x4efd34]
xor eax, esp
mov dword [esp + 0x4a0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4efd34]
xor eax, esp
push eax
lea eax, [esp + 0x4b8]
mov dword fs:[0], eax
mov edi, dword [esp + 0x4c8]
mov ebp, ecx
cmp dword [ebp + 0xf0], 0
jne 0x40de98
push 0xffffffffffffffff
call fcn.00438660
mov ecx, eax
call fcn.00437470
test eax, eax
je 0x40de98
push 1
mov ecx, 0x4f1a40
call fcn.0040bd50
mov al, 0x30
mov cl, 0x37
mov bl, 0x31
mov byte [esp + 0x48f], al
mov dl, 0x34
mov byte [esp + 0x496], al
mov byte [esp + 0x497], al
mov byte [esp + 0x49b], al
mov eax, dword [ebp + 0x10c]
mov byte [esp + 0x492], cl
mov byte [esp + 0x499], cl
mov byte [esp + 0x48c], bl
mov byte [esp + 0x48d], 0x62
mov byte [esp + 0x48e], 0x33
mov byte [esp + 0x490], dl
mov byte [esp + 0x491], 0x63
mov byte [esp + 0x493], 0x61
mov byte [esp + 0x494], 0x32
mov byte [esp + 0x495], 0x64
mov byte [esp + 0x498], dl
mov byte [esp + 0x49a], bl
mov byte [esp + 0x49c], 0
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x40ddb2
sub eax, ecx
lea esi, [eax + 0x10]
lea ecx, [esp + 0x18]
and esi, 0xfffffff0
call fcn.00416dd0
mov eax, dword [0x4e3344]
push 0x10
push 0x10
push eax
lea ecx, [esp + 0x498]
push ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x4d0], 0
call fcn.00416df0
mov eax, dword [ebp + 0x10c]
push 0
push esi
push eax
push eax
lea ecx, [esp + 0x28]
call fcn.004178a0
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40de78
xor edi, edi
test esi, esi
jle 0x40de71
lea esp, [esp]
mov edx, dword [ebp + 0x10c]
movzx eax, byte [edx + edi]
push eax
push str._02x
lea ecx, [esp + 0x4b4]
push 8
push ecx
call fcn.0049806a
add esp, 0x10
push 0
lea edx, [esp + 0x18]
push edx
push 2
lea eax, [esp + 0x4b8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
add edi, 1
cmp edi, esi
jl 0x40de30
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00438660
mov ecx, eax
call fcn.00437000
lea ecx, [esp + 0x18]
mov dword [esp + 0x4c0], 0xffffffff
call fcn.00416de0
mov ecx, dword [esp + 0x4b8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4a0]
xor ecx, esp
call fcn.004972eb
add esp, 0x4b0
ret 4
Function at 0x40e911
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0xa4], 0
je 0x40e922
xor eax, eax
pop esi
pop ecx
ret
lea eax, [esp + 4]
push eax
push 0
push esi
push 0x40e8f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0xa4], eax
je 0x40e91d
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, 1
pop esi
pop ecx
ret

Function at 0x40fbf0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
mov eax, dword [0x4efd34]
xor eax, esp
mov dword [esp + 0x10c], eax
mov ecx, dword [esp + 0x118]
mov eax, dword [esp + 0x114]
push esi
push edi
mov edi, dword [esp + 0x124]
lea edx, [esp + 8]
push edx
push 1
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40fc69
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
push esi
push edx
mov dword [esp + 0x1c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x114]
pop edi
pop esi
xor ecx, esp
call fcn.004972eb
add esp, 0x110
ret 0xc

Function at 0x40fde0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4efd34]
xor eax, esp
mov dword [esp + 0x208], eax
mov eax, dword [esp + 0x214]
push ebp
mov ebp, dword [esp + 0x214]
push esi
push edi
push eax
push 0
push 0
push ebp
push str.open
push 0
mov edi, ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40fedc
lea ecx, [esp + 0xc]
push ecx
push str..htm
push SysReAllocString
mov ecx, edi
call fcn.0040fbf0
test eax, eax
jne 0x40fefa
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str._shellopencommand
lea edx, [esp + 0x14]
push edx
call ebx
lea eax, [esp + 0x10]
push eax
mov ecx, eax
push ecx
push SysReAllocString
mov ecx, edi
call fcn.0040fbf0
test eax, eax
jne 0x40fef6
lea edx, [esp + 0x10]
push 0x4b9564
push edx
call fcn.00498488
mov esi, eax
add esp, 8
test esi, esi
jne 0x40feb3
lea eax, [esp + 0x10]
push 0x4b9560
push eax
call fcn.00498488
mov esi, eax
add esp, 8
test esi, esi
jne 0x40feb3
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x40feb6
mov byte [esi], 0
push 0x4b7434
push esi
call ebx
push ebp
push esi
call ebx
call dword [0x4f1240]
mov edx, dword [esp + 0x224]
push edx
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.004972eb
add esp, 0x20c
ret 8
mov eax, esi
jmp 0x40fedb
mov eax, esi
jmp 0x40fedc