joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001185d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10023d58
push 0x10023d50
push str.FlsAlloc
push 0x1e
call fcn.10011727
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10011891
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002118c]
call esi
jmp 0x10011897
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100118db
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10023d68
push 0x10023d60
push str.FlsGetValue
push 0x20
call fcn.10011727
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10011912
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002118c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x10015a2d
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 0x10015aca
push ebx
push esi
call fcn.100159f6
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.1001593f
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10015a77
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10015ac9
push edi
push eax
call fcn.10011e90
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10015a97
call fcn.1001144c
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10015ac8
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001593f
add esp, 0x20
test eax, eax
jne 0x10015ab6
push edi
call fcn.1001144c
jmp 0x10015abe
push ebx
call fcn.1001144c
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 0x10016f27
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10016d98

Function at 0x10017321
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1001fe00
mov eax, dword [0x1002e00c]
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.100120cd
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10017363
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x100174bf
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1001fe30
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 + 0x1002f8e0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.100182fe
mov ecx, dword [esi*4 + 0x1002f8e0]
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 0x100174b8
cmp eax, dword [edi + ecx + 0x24]
jne 0x100174b8
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 0x100174b8
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100182fe
add esp, 0x14
test edx, edx
jl 0x100174b8
jg 0x1001742e
test eax, eax
jb 0x100174b8
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x100174b8
jl 0x10017448
cmp dword [ebp - 0x1008], eax
ja 0x100174b8
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10017466
test ebx, ebx
je 0x1001749f
cmp ecx, edi
jae 0x1001749f
mov al, byte [ecx]
cmp al, 0xd
jne 0x10017480
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1001748c
cmp byte [ecx + 1], 0xa
jne 0x1001748c
inc ecx
jmp 0x1001748c
movzx eax, al
movsx eax, byte [eax + 0x1002e798]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10017466
cmp edx, ebx
jne 0x10017466
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x100174bd
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10006bb0
leave
ret
Function at 0x100177b6
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 + 0x1002f8e0]
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 0x100177f6
cmp byte [ebx], 0xa
jne 0x100177f6
or byte [eax + edi + 0x28], 4
jmp 0x100177fb
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x100178f9
mov al, byte [edx]
cmp al, 0x1a
je 0x100178db
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x1001782a
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x1001784f
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x10017859
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 0x1001780c
jmp 0x100178f9
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 0x100178d6
cmp dword [ebp - 0xc], 0
je 0x100178d6
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x1002f8e0]
test byte [eax + edi + 0x28], 0x48
je 0x100178b0
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1001789b
mov byte [esi], dl
jmp 0x100178ac
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1002f8e0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x100178f9
cmp byte [ebp - 1], 0xa
jne 0x100178bf
cmp esi, ebx
jne 0x100178bf
mov byte [esi], 0xa
jmp 0x100178f8
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1001831c
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x100178f9
mov byte [esi], 0xd
jmp 0x100178f8
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x1002f8e0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100178f5
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100178f9
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10017902
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 + 0x1002f8e0]
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 0x10017945
cmp word [esi], dx
jne 0x10017945
or byte [edi + eax + 0x28], 4
jmp 0x1001794a
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 0x10017a83
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 0x10017a63
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x1001798c
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x100179c2
cmp eax, edx
jae 0x100179ce
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 0x10017964
jmp 0x10017a83
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 0x10017a5f
cmp dword [ebp - 0x14], 0
je 0x10017a5f
mov eax, dword [ebx*4 + 0x1002f8e0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x10017a37
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x10017a7d
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x1002f8e0]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x1002f8e0]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x1002f8e0]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x10017a80
pop ebx
cmp word [ebp - 4], bx
jne 0x10017a48
cmp esi, dword [ebp + 0xc]
jne 0x10017a48
mov word [esi], bx
jmp 0x10017a80
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1001831c
add esp, 0x10
cmp word [ebp - 4], bx
je 0x10017a83
push 0xd
jmp 0x10017a7c
mov ecx, dword [ebx*4 + 0x1002f8e0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10017a7a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10017a83
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 0x1001efa1
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.1001ef1d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1001f119
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1001f119
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1001f0c8
jg 0x1001effa
test eax, eax
je 0x1001f0be
push 1
push 0x1000
call fcn.100113ef
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1001f020
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x1001f0b5
push 0x8000
push ebx
call fcn.1001ee4e
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 0x1001f04c
jg 0x1001f047
cmp ecx, 0x1000
jb 0x1001f04c
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10016b98
add esp, 0x10
cmp eax, 0xffffffff
je 0x1001f091
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 0x1001f047
jl 0x1001f078
test ecx, ecx
jne 0x1001f039
push dword [ebp - 0xc]
push ebx
call fcn.1001ee4e
push esi
call fcn.1001144c
add esp, 0xc
xor edi, edi
jmp 0x1001f12a
cmp byte [edi + 0x24], 0
je 0x1001f0a8
cmp dword [edi + 0x20], 5
jne 0x1001f0a8
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1001f0b3
mov edi, dword [edi + 0x18]
jmp 0x1001f0b5
xor edi, edi
push esi
call fcn.1001144c
pop ecx
jmp 0x1001f12a
test ecx, ecx
jg 0x1001f08a
jl 0x1001f0c8
test eax, eax
jae 0x1001f08a
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1001831c
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1001f0eb
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x1001f08a
jmp 0x1001f122
push ebx
call fcn.1001b897
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1001f08a
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 0x1001f12a
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x1001f127
mov edi, dword [edi + 0x18]
jmp 0x1001f12a
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1001831c
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x424e50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x18000]
push edi
jmp 0x424e6a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x424e71
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x424e60
mov eax, 1
add ebx, ebx
jne 0x424e83
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x424e78
jne 0x424e94
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x424e78
xor ecx, ecx
sub eax, 3
jb 0x424ea8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x424f1a
mov ebp, eax
add ebx, ebx
jne 0x424eb3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x424ec0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x424ee4
inc ecx
add ebx, ebx
jne 0x424ed0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x424ec5
jne 0x424ee1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x424ec5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x424f04
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x424ef5
jmp 0x424e66
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x424f04
add edi, ecx
jmp 0x424e66
pop esi
mov edi, esi
mov ecx, 0x91a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x424f22
cmp byte [edi], 9
jne 0x424f22
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x424f27
lea edi, [esi + 0x22000]
mov eax, dword [edi]
or eax, eax
je 0x424f9f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2ac40]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2ad20]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x424f54
mov ecx, edi
jns 0x424f83
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2ad28]
or eax, eax
je 0x424f99
mov dword [ebx], eax
add ebx, 4
jmp 0x424f71
call dword [esi + 0x2ad24]
mov ebp, dword [esi + 0x2ad2c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x17f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x424fd3
sub esp, 0xffffff80
jmp 0x41382f
Function at 0x406555
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42b764]
jne 0x40655f
repz ret
jmp fcn.0040aec6

Function at 0x409d47
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00404b4e
and dword [ebp - 4], 0
cmp dword [0x43081c], 0
mov ebx, eax
jne 0x409df8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x409ea9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x409ea9
push eax
call fcn.00404adc
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43081c], eax
call esi
push eax
call fcn.00404adc
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x430820], eax
call esi
push eax
call fcn.00404adc
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x430824], eax
call esi
push eax
call fcn.00404adc
pop ecx
mov dword [0x43082c], eax
test eax, eax
je 0x409df8
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404adc
pop ecx
mov dword [0x430828], eax
mov eax, dword [0x430828]
cmp eax, ebx
je 0x409e50
cmp dword [0x43082c], ebx
je 0x409e50
push eax
call fcn.00404b57
push dword [0x43082c]
mov esi, eax
call fcn.00404b57
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x409e50
test edi, edi
je 0x409e50
call esi
test eax, eax
je 0x409e47
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x409e47
test byte [ebp - 0xc], 1
jne 0x409e50
or dword [ebp + 0x10], 0x200000
jmp 0x409e89
mov eax, dword [0x430820]
cmp eax, ebx
je 0x409e89
push eax
call fcn.00404b57
pop ecx
test eax, eax
je 0x409e89
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x409e89
mov eax, dword [0x430824]
cmp eax, ebx
je 0x409e89
push eax
call fcn.00404b57
pop ecx
test eax, eax
je 0x409e89
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43081c]
call fcn.00404b57
pop ecx
test eax, eax
je 0x409ea9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x409eab
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1004495e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x1004496d
pop dword [ebp - 0x30]
mov eax, 0x43cf0c4c
sub eax, 0x33cac2df
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0x5cef9cd9
add dword [ebp - 0x40], 0xf162a872
mov dword [ebp - 0x3c], 0x31316f2f
sub dword [ebp - 0x3c], 0xfefe22ea
mov dword [ebp - 0x38], 0xf08550c9
sub dword [ebp - 0x38], 0xa4390c9b
mov dword [ebp - 0x34], 0x7cf5863
add dword [ebp - 0x34], 0xf830a79d
lea eax, [ebp - 0x40]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0x4cc1db1c
sub dword [ebp - 0x40], 0xd84f71c6
mov dword [ebp - 0x3c], 0xbac9b172
add dword [ebp - 0x3c], 0x86a2b003
mov dword [ebp - 0x38], 0x8fdc5bdb
sub dword [ebp - 0x38], 0x2c6cef6f
mov dword [ebp - 0x34], 0x31871a62
sub dword [ebp - 0x34], 0x31871a62
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x50589
push 0
call eax
mov ecx, 0xfd380916
sub ecx, 0xfd37d6e4
xor ebx, ebx
add ebx, eax
mov edi, 0xa2490094
sub edi, 0x92404494
add edi, dword [ebp - 0x30]
mov edx, 0x414d915
sub edx, 0x597e8654
xor dword [ebp - 0x28], 0x4dd63868
mov esi, dword [edi]
xor dword [ebp - 0x20], esi
xor esi, edx
mov dword [ebx], esi
add ebx, 4
add edi, 0x6a1b802e
sub edi, 0x6a1b802a
loop 0x10044a87
add eax, 0xa19f2c5c
sub eax, 0xa19e70c1
xor ebx, ebx
add ebx, eax
add eax, 0xb2b5b444
sub eax, 0xb2b5b43f
mov ecx, 0xe0309baa
add ecx, 0x2fcf6456
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x401770
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401785
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4017c4
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4017c0
lea ebx, [ebx]
cmp esi, edx
jae 0x4017c4
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x4017b0
cmp esi, edx
jb 0x4017c9
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret
Function at 0x405380
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ab236
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x4fb128]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push esi
mov byte [ebp - 4], 1
call ebx
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x40542c
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x40542c
call fcn.004032a0
mov esi, eax
jmp 0x40551c
push dword [ebp - 0x420]
push dword [ebp - 0x41c]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x40544f
call fcn.004032a0
jmp 0x40550f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x41c], ebx
test ebx, ebx
jne 0x40546d
call fcn.004032a0
jmp 0x40550f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x420], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x40548e
mov esi, 0x8007000e
jmp 0x405511
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.00403120
jmp 0x4054b8
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x4054cf
mov esi, 0x8007000e
jmp 0x405511
push esi
push dword [ebp - 0x418]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x4054ef
call fcn.004032a0
jmp 0x40550f
mov eax, dword [ebp - 0x418]
push dword [ebp + 0x14]
xor edx, edx
mov word [eax + ecx*2], dx
push dword [ebp - 0x418]
lea ecx, [ebp - 0x42c]
call fcn.00405220
mov esi, eax
test edi, edi
je 0x40551c
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x405540
lea ecx, [ebp - 0x418]
call fcn.004037c0
jmp 0x405540
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0047232c
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4062c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x4062d9
lea eax, [ebx + 0xd]
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
nop
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4062e5
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x4062e0
mov eax, dword [ebp - 4]
push esi
push ebx
push 7
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x406320
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x406335
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
jmp 0x406340
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406340
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc