joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4721b0
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x472382
xor ecx, ecx
xor edx, edx
mov ch, byte [eax]
mov dl, byte [eax + 2]
mov cl, byte [eax + 1]
push ebx
shl ecx, 8
or ecx, edx
xor edx, edx
mov dl, byte [eax + 3]
push ebp
shl ecx, 8
or ecx, edx
xor edx, edx
mov dl, byte [eax + 6]
mov dword [eax], ecx
xor ecx, ecx
push esi
mov ch, byte [eax + 4]
push edi
mov cl, byte [eax + 5]
xor ebp, ebp
shl ecx, 8
or ecx, edx
xor edx, edx
mov dl, byte [eax + 7]
shl ecx, 8
or ecx, edx
mov edx, dword [esp + 0x18]
mov dword [eax + 4], ecx
xor ecx, ecx
mov ch, byte [eax + 8]
lea edi, [edx + 0xc]
mov cl, byte [eax + 9]
mov word [eax + 8], cx
mov ecx, dword [eax]
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov cx, word [eax + 8]
mov word [edx + 8], cx
xor ecx, ecx
movzx si, byte [eax + 0xb]
mov ch, byte [eax + 0xa]
or ecx, esi
mov word [eax + 0xa], cx
mov word [edx + 0xa], cx
movzx si, byte [eax + 0xb]
xor ecx, ecx
mov ch, byte [eax + 0xa]
or ecx, esi
mov esi, dword [eax + 0xc]
mov word [eax + 0xa], cx
and ecx, 0xffff
mov ebx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
movzx si, byte [eax + 0x11]
mov bp, word [eax + 0xa]
xor ecx, ecx
mov ch, byte [eax + 0x10]
add ebp, 0xc
or ecx, esi
mov word [eax + 0x10], cx
mov word [edx + ebp], cx
movzx si, byte [eax + 0x11]
xor ecx, ecx
lea edi, [edx + ebp + 2]
mov ch, byte [eax + 0x10]
or ecx, esi
mov esi, dword [eax + 0x14]
mov word [eax + 0x10], cx
and ecx, 0xffff
mov ebx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
movzx si, byte [eax + 0x19]
xor ecx, ecx
mov cx, word [eax + 0x10]
lea ebp, [ecx + ebp + 2]
xor ecx, ecx
mov ch, byte [eax + 0x18]
or ecx, esi
lea edi, [edx + ebp + 2]
mov word [eax + 0x18], cx
mov word [edx + ebp], cx
movzx si, byte [eax + 0x19]
xor ecx, ecx
mov ch, byte [eax + 0x18]
or ecx, esi
mov esi, dword [eax + 0x1c]
mov word [eax + 0x18], cx
and ecx, 0xffff
mov ebx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
movzx si, byte [eax + 0x21]
xor ecx, ecx
mov cx, word [eax + 0x18]
lea ebp, [ecx + ebp + 2]
xor ecx, ecx
mov ch, byte [eax + 0x20]
or ecx, esi
lea edi, [edx + ebp + 2]
mov word [eax + 0x20], cx
mov word [edx + ebp], cx
movzx si, byte [eax + 0x21]
xor ecx, ecx
mov ch, byte [eax + 0x20]
or ecx, esi
mov esi, dword [eax + 0x24]
mov word [eax + 0x20], cx
and ecx, 0xffff
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
xor edx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dl, byte [eax + 6]
xor ecx, ecx
mov ch, byte [eax + 4]
pop edi
mov cl, byte [eax + 5]
pop esi
shl ecx, 8
or ecx, edx
xor edx, edx
mov dl, byte [eax + 7]
pop ebp
shl ecx, 8
or ecx, edx
xor edx, edx
mov dh, byte [eax]
mov dword [eax + 4], ecx
mov dl, byte [eax + 1]
xor ecx, ecx
mov ch, byte [eax + 8]
pop ebx
mov cl, byte [eax + 9]
mov word [eax + 8], cx
xor ecx, ecx
mov cl, byte [eax + 2]
shl edx, 8
or edx, ecx
xor ecx, ecx
mov cl, byte [eax + 3]
shl edx, 8
or edx, ecx
mov dword [eax], edx
ret
Function at 0x474fa0
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x94
mov eax, dword [esp + 0x9c]
push esi
push 0x40
lea ecx, [esp + 0x1c]
xor esi, esi
push eax
push ecx
mov dword [esp + 0x24], 0x67452301
mov dword [esp + 0x28], 0xefcdab89
mov dword [esp + 0x2c], 0x98badcfe
mov dword [esp + 0x30], 0x10325476
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
call fcn.00474db0
lea edx, [esp + 0x24]
lea eax, [esp + 0x10]
push edx
push eax
call fcn.00474ee0
mov esi, dword [esp + 0xb0]
add esp, 0x14
xor edx, edx
mov cl, byte [esp + edx + 4]
mov al, cl
and cl, 0xf
sar al, 4
and al, 0xf
cmp al, 0xa
movsx eax, al
jge 0x47501a
add eax, 0x30
jmp 0x47501d
add eax, 0x57
mov byte [esi], al
cmp cl, 0xa
movsx eax, cl
jge 0x47502c
add eax, 0x30
jmp 0x47502f
add eax, 0x57
mov byte [esi + 1], al
inc edx
add esi, 2
cmp edx, 0x10
jl 0x475000
pop esi
add esp, 0x94
ret

Function at 0x475050
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x84
push ebx
mov ebx, dword [esp + 0x90]
push ebp
mov ebp, dword [esp + 0x90]
push esi
push edi
mov ecx, 0x10
xor eax, eax
mov edi, ebp
mov esi, dword [esp + 0xa0]
rep stosd dword es:[edi], eax
mov ecx, 8
mov edi, ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x20
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
test esi, esi
mov dword [esp + 0x14], 0x9d14e9a1
mov dword [esp + 0x18], 0x593b6b0e
je 0x4750db
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x28
jne 0x4750bf
mov byte [esi + 0x20], al
mov ecx, 0x20
jmp 0x4750c9
cmp ecx, 0x38
jle 0x4750c9
mov ecx, 0x38
mov eax, ecx
lea edi, [esp + 0x1c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x4cc72c
test ecx, ecx
je 0x47510f
mov edi, ecx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x38
jle 0x4750fa
mov ecx, 0x38
xor eax, eax
test ecx, ecx
jle 0x47510f
mov dl, byte [eax + 0x4cc72c]
xor byte [esp + eax + 0x1c], dl
inc eax
cmp eax, ecx
jl 0x475100
lea eax, [esp + 0x14]
push eax
push ebp
call fcn.00474fa0
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, str.01d0a8e3
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea esi, [edx + ebp]
sub edi, ecx
mov eax, ecx
mov dword [esp + 0x10], esi
mov esi, edi
mov edi, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, edx
cdq
and edx, 3
and ecx, 3
add eax, edx
rep movsb byte es:[edi], byte [esi]
sar eax, 2
xor ecx, ecx
test eax, eax
jle 0x475174
mov esi, ebp
mov dl, byte [esi]
add esi, 4
mov byte [ecx + ebx], dl
inc ecx
cmp ecx, eax
jl 0x475167
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84
ret
Function at 0x475d40
Capabilities:
Encode data using base64
Terminate process

Disassembly:
sub esp, 0x118
mov ecx, 0x3f
mov eax, 0x80808080
push ebx
push ebp
push esi
push edi
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, 0x41
mov cl, al
sub cl, 0x41
mov byte [esp + eax + 0x28], cl
inc eax
cmp eax, 0x5a
jle 0x475d62
mov eax, 0x61
mov dl, al
sub dl, 0x47
mov byte [esp + eax + 0x28], dl
inc eax
cmp eax, 0x7a
jle 0x475d76
mov eax, 0x30
mov cl, al
add cl, 4
mov byte [esp + eax + 0x28], cl
inc eax
cmp eax, 0x39
jle 0x475d8a
mov edi, dword [esp + 0x12c]
or ecx, 0xffffffff
xor eax, eax
xor ebp, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x53], 0x3e
mov byte [esp + 0x57], 0x3f
mov byte [esp + 0x65], 0
mov dword [esp + 0x18], ebp
je 0x475f1d
mov ebx, dword [esp + 0x130]
mov dword [esp + 0x10], 3
mov dword [esp + 0x14], 4
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x12c]
xor eax, eax
lea esi, [edx + ecx]
movsx ecx, byte [esi + eax]
mov dl, byte [esp + ecx + 0x28]
test dl, 0x80
jne 0x475eee
mov byte [esp + eax + 0x20], cl
mov byte [esp + eax + 0x1c], dl
inc eax
cmp eax, 4
jl 0x475dec
mov esi, dword [esp + 0x138]
mov edx, dword [esp + 0x10]
cmp edx, dword [esi]
jle 0x475e56
mov eax, dword [esp + 0x14]
push eax
call fcn.00499387
mov ecx, dword [esi]
mov esi, ebx
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
mov dword [esp + 0x2c], eax
rep movsb byte es:[edi], byte [esi]
call fcn.0049929e
mov ecx, dword [esp + 0x140]
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x2c]
add esp, 8
mov dword [ecx], eax
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov dl, ch
mov al, cl
sar dl, 4
shl al, 2
or dl, al
mov eax, dword [esp + 0x14]
mov byte [ebx + ebp], dl
inc ebp
inc eax
mov cl, ch
mov dword [esp + 0x14], eax
mov al, byte [esp + 0x1e]
mov dl, al
inc edi
sar dl, 2
shl cl, 4
or dl, cl
mov ecx, dword [esp + 0x14]
shl al, 6
or al, byte [esp + 0x1f]
mov byte [ebx + ebp], dl
inc ebp
mov edx, edi
inc ecx
inc edx
mov byte [ebx + ebp], al
mov al, byte [esp + 0x22]
inc ebp
inc ecx
inc edx
mov dword [esp + 0x10], edi
cmp al, 0x3d
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edx
je 0x475f03
mov cl, byte [esp + 0x23]
xor eax, eax
cmp cl, 0x3d
setne al
add eax, 2
cmp eax, 3
jl 0x475f03
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x12c]
or ecx, 0xffffffff
xor eax, eax
add edx, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x18], edx
cmp edx, ecx
jae 0x475f24
jmp 0x475ddc
push ecx
push str.Illegal_character__c_in_input._n
call fcn.0049a7c7
add esp, 8
push 1
call fcn.0049a998
mov eax, dword [esp + 0x134]
mov byte [ebx + ebp], 0
pop edi
pop esi
mov dword [eax], ebp
mov eax, ebx
pop ebp
pop ebx
add esp, 0x118
ret
mov ebx, dword [esp + 0x130]
mov ecx, dword [esp + 0x134]
mov byte [ebx + ebp], 0
pop edi
pop esi
mov dword [ecx], ebp
mov eax, ebx
pop ebp
pop ebx
add esp, 0x118
ret
Function at 0x47b650
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
test esi, esi
push edi
jne 0x47b660
mov esi, 1
push esi
call fcn.00499387
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x47b6b2
call fcn.0049b825
mov edi, eax
call fcn.0047e1a0
mov ecx, dword [edi]
mov dword [eax], ecx
mov eax, dword [esp + 0x14]
mov edi, eax
and edi, 8
je 0x47b696
mov edx, dword [0x4edf78]
mov dword [0x4edf74], edx
test al, 0x18
je 0x47b6a7
push esi
push 0x24
push 5
call fcn.0047e9f0
add esp, 0xc
test edi, edi
je 0x47b6cd
push 1
call fcn.0049a998
test byte [esp + 0x14], 0x20
je 0x47b6cd
mov ecx, esi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
pop edi
pop esi
mov eax, ebx
pop ebx
ret

Function at 0x47c7d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov edx, dword [ebp + 0x10]
test edx, edx
push ebx
push esi
push edi
je 0x47c8c4
cmp byte [edx], 0
je 0x47c8b7
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
add eax, 8
or ecx, 0xffffffff
mov dword [esp + 0xc], eax
xor eax, eax
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x20]
push ecx
mov esi, ebx
call fcn.0047c750
mov edi, dword [ebp + 0xc]
push 8
lea edx, [esp + 0x20]
push edi
push edx
call fcn.0047c750
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
xor eax, edx
push eax
xor ecx, dword [esp + 0x34]
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.0047c6c0
mov eax, dword [esp + 0x30]
add esp, 0x24
cmp edi, eax
jae 0x47c881
sub eax, edi
mov edi, eax
lea eax, [esp + 0x20]
push eax
call fcn.0047c700
fmul qword [0x4cc768]
push ecx
fstp qword [esp]
call fcn.00497bf8
fadd qword [0x4cc760]
add esp, 8
call fcn.00497cc8
mov byte [ebx], al
inc ebx
dec edi
jne 0x47c854
lea ecx, [esp + 0x20]
push ecx
call fcn.0047c700
fmul qword [0x4cc768]
push ecx
fstp qword [esp]
call fcn.00497bf8
add esp, 8
call fcn.00497cc8
cmp esi, ebx
je 0x47c8ad
xor byte [esi], al
inc esi
cmp esi, ebx
jne 0x47c8a6
mov byte [ebx], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
mov byte [edx], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
pop edi
pop esi
mov byte [eax], 0
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47cc90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
lea eax, [ebx + 0x134]
push edi
lea esi, [ebx + 0x34]
mov dword [esp + 0x14], eax
xor edi, edi
mov ecx, dword [ebx + 0x1c]
mov ebp, edi
and ebp, 0xff
mov al, byte [ecx + ebp + 1]
test al, 3
je 0x47ccc0
mov byte [edi + esi], 2
jmp 0x47ccf7
test al, 4
je 0x47ccca
mov byte [edi + esi], 0xd
jmp 0x47ccf7
mov edx, dword [ebx + 0x240]
push edi
push ebx
call dword [edx + 4]
add esp, 8
cmp eax, 1
jle 0x47cce3
mov byte [edi + esi], 2
jmp 0x47ccf7
mov eax, dword [ebx + 0x1c]
test byte [eax + ebp + 1], 0x17
jne 0x47ccf3
mov byte [edi + esi], 0x19
jmp 0x47ccf7
mov byte [edi + esi], 1
inc edi
cmp edi, 0x100
jb 0x47cca7
mov ecx, dword [esp + 0x14]
mov al, 7
mov byte [esi + 0x21], al
mov byte [esi + 0x3d], al
mov byte [esi + 0x3e], al
mov al, 0x10
mov byte [esi + 0x7c], al
mov byte [esi + 0x26], al
mov byte [esi + 0x24], 2
mov byte [esi + 0x5f], 2
mov byte [esi + 0x27], 9
mov byte [esi + 0x2e], 0xf
mov byte [esi + 0x3c], 8
mov byte [esi + 0x23], 0xa
mov byte [esi + 0x3b], 0x15
mov byte [esi + 0x3a], 0x16
mov byte [esi], 0x11
mov byte [esi + 0x5c], 0x12
mov byte [esi + 0x2f], 0x13
mov byte [esi + 0x2a], 0x14
mov byte [esi + 0x40], 0x17
mov byte [esi + 0x60], 0x1a
mov byte [esi + 0x22], 0x20
mov eax, esi
sub ecx, esi
mov edi, 0x100
mov dl, byte [eax]
cmp dl, 2
je 0x47cd6b
cmp dl, 0xd
je 0x47cd6b
xor edx, edx
jmp 0x47cd70
mov edx, 1
mov byte [ecx + eax], dl
inc eax
dec edi
jne 0x47cd5b
mov al, 0x1d
mov byte [esi + 0x58], al
mov byte [esi + 0x78], al
mov al, 0x1f
pop edi
mov byte [esi + 0x62], 0x1e
mov byte [esi + 0x4e], al
mov byte [esi + 0x6e], al
pop esi
pop ebp
pop ebx
ret

Function at 0x47cd90
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
push ebx
push 0x4000
call fcn.0047b650
mov esi, eax
add esp, 8
test esi, esi
jne 0x47cdb1
pop edi
pop esi
xor al, al
pop ebx
ret
mov eax, dword [esp + 0x10]
push ebx
push 0
push eax
call fcn.0047e3e0
mov edi, eax
add esp, 0xc
test edi, edi
jge 0x47cdd6
push esi
call fcn.0047b6e0
add esp, 4
pop edi
pop esi
mov al, 1
pop ebx
ret
push ebp
push 0x4000
push esi
push edi
call fcn.004a5831
push ebx
push edi
mov ebp, eax
call fcn.0047e450
push 0x47ce10
push ebp
push esi
call fcn.0047f780
push esi
call fcn.0047b6e0
add esp, 0x24
pop ebp
pop edi
pop esi
xor al, al
pop ebx
ret
Function at 0x47e110
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push esi
push 0x5d30a0
xor bl, bl
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x5d2fcc]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x47e18b
push 0x4c
push 1
call fcn.00499dd1
mov esi, eax
add esp, 8
test esi, esi
jne 0x47e153
push 0x5d30a0
mov bl, 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov al, bl
pop ebx
ret
mov ecx, dword [0x5d2fcc]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x5c8314]
inc eax
lea edx, [esi + 0xc]
mov dword [0x5c8314], eax
push edx
mov dword [esi + 0x30], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esi + 4]
push 0
push eax
call fcn.00481c90
add esp, 8
mov byte [esi + 0x3c], 1
push 0x5d30a0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov al, bl
pop ebx
ret

Function at 0x47e610
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x1c], edi
call fcn.0049b825
mov ebx, dword [esp + 0x14]
mov dword [eax], 0
mov eax, dword [esp + 0x18]
push edi
push eax
push ebx
call fcn.004a5831
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x47e70a
call fcn.0049b825
cmp dword [eax], 0
je 0x47e657
call fcn.0049b825
mov ebp, dword [eax]
jmp 0x47e65a
or ebp, 0xffffffff
call fcn.0047e1a0
test esi, esi
mov dword [eax], ebp
jne 0x47e66f
call fcn.0049b825
cmp dword [eax], 4
je 0x47e6bf
mov eax, dword [esp + 0x20]
test al, 0x1a
je 0x47e6a2
cmp esi, 0xffffffff
je 0x47e6e4
test al, 6
je 0x47e6a2
call fcn.0047e1a0
mov ecx, dword [eax]
push ecx
push ebx
call fcn.00481cc0
add esp, 4
push eax
push 0x24
push 9
call fcn.0047e9f0
mov eax, dword [esp + 0x30]
add esp, 0x10
cmp esi, 0xffffffff
je 0x47e702
test al, 6
je 0x47e6b0
test ah, 2
je 0x47e702
test esi, esi
jbe 0x47e70e
test ah, 2
je 0x47e70e
add dword [esp + 0x18], esi
sub edi, esi
call fcn.0049b825
mov edx, dword [esp + 0x18]
push edi
push edx
push ebx
mov dword [eax], 0
call fcn.004a5831
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x47e70a
jmp 0x47e644
call fcn.0047e1a0
mov eax, dword [eax]
push eax
push ebx
call fcn.00481cc0
add esp, 4
push eax
push 0x24
push 2
call fcn.0047e9f0
add esp, 0x10
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
mov eax, dword [esp + 0x20]
test al, 6
je 0x47e71b
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
test ah, 2
je 0x47e724
mov esi, dword [esp + 0x1c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret

Function at 0x49c754
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x49c774
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0049b7b2
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x49c797
test byte [esp + 8], 2
je 0x49c797
call fcn.0049b825
mov dword [eax], 0xd
call fcn.0049b82e
mov dword [eax], 5
jmp 0x49c770
xor eax, eax
ret
Function at 0x4af31c
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4af354
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004ad3d3
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004ad3ab
jmp 0x4af360
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4b0a0f
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 0x4b0a51
call fcn.004b69b4
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4b0a51
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4b0a48
xor eax, eax
jmp 0x4b0a59
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004b0a5f
pop edi
pop esi
pop ebx
ret 4

Function at 0x4b6ee4
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 0x4b6f12
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4b6f30
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004b6e4a
jmp 0x4b6f30
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4b6f30
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004b6e4a
test edi, edi
mov eax, edi
jne 0x4b6f1a
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x11256
Capabilities:
Parse pe header

Disassembly:
push 0x14
push 0x9f56e0a0
call fcn.0001ce18
and dword [ebp - 0x1c], 0
and dword [ebp - 4], 0
mov edi, dword [ebp + 8]
mov dword [ebp - 0x20], edi
test edi, edi
je 0x112be
push edi
mov ebx, dword [0x9f56def8]
call ebx
test al, al
je 0x112be
lea esi, [edi + 0x3c]
push esi
call ebx
test al, al
je 0x112be
cmp word [edi], 0x5a4d
jne 0x112be
mov esi, dword [esi]
add esi, edi
mov dword [ebp - 0x24], esi
je 0x112be
push esi
call ebx
test al, al
je 0x112be
cmp dword [esi], 0x4550
jne 0x112be
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x1c], 1
jmp 0x112c2
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
call fcn.0001ce53
ret 4

Function at 0x1144c
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret 4

Function at 0x125d2
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 4]
movzx eax, word [ecx + 0x14]
lea eax, [eax + ecx + 0x18]
movzx ecx, word [ecx + 6]
push esi
xor esi, esi
test ecx, ecx
push edi
jbe 0x12606
mov edx, dword [eax + 0xc]
cmp dword [esp + 0x14], edx
jb 0x125fe
mov edi, dword [eax + 0x10]
add edi, edx
cmp dword [esp + 0x14], edi
jb 0x12608
add eax, 0x28
inc esi
cmp esi, ecx
jb 0x125ea
xor eax, eax
pop edi
pop esi
ret 0xc
Function at 0x1a8b4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [ebp + 8], 0
push esi
je 0x1a8c8
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x1a8cf
xor eax, eax
jmp 0x1a9ea
push ebx
push edi
push 0xc
push dword [ebp + 8]
call fcn.0001a820
push 8
push dword [ebp + 8]
mov edi, eax
mov dword [ebp - 0x10], edi
call fcn.0001a820
push 4
push dword [ebp + 8]
mov ebx, eax
mov dword [ebp - 0xc], ebx
call fcn.0001a820
push 0
push dword [ebp + 8]
mov dword [ebp + 0xc], eax
call fcn.0001a820
mov ecx, dword [ebp + 0xc]
mov dword [ebp + 8], eax
shl dword [ebp + 8], 0x10
mov dword [ebp - 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x10], ecx
shr ecx, 0x10
mov dword [ebp - 0x18], ecx
or ecx, dword [ebp + 8]
mov dword [ebp - 4], edi
shl dword [ebp - 4], 0x10
mov dword [esi + 4], ecx
mov ecx, eax
mov eax, dword [ebp - 4]
shr ecx, 0x10
or eax, ecx
mov dword [esi + 0xc], eax
or ecx, dword [ebp + 8]
mov edx, edi
mov dword [ebp - 8], ebx
shl dword [ebp - 8], 0x10
shr edx, 0x10
mov eax, edx
or eax, dword [ebp - 8]
mov dword [esi + 8], ebx
mov dword [esi + 0x14], eax
mov eax, ebx
shr eax, 0x10
mov ebx, eax
or eax, dword [ebp - 8]
mov dword [esi + 0x28], ecx
mov dword [esi + 0x38], eax
mov eax, dword [ebp - 0xc]
xor eax, dword [ebp - 0x10]
mov ecx, 0xffff
and eax, ecx
xor eax, dword [ebp - 0x10]
or edx, dword [ebp - 4]
mov dword [esi + 0x24], eax
mov eax, dword [ebp + 0xc]
xor eax, dword [ebp - 0xc]
mov dword [esi], edi
mov edi, dword [ebp + 0xc]
and eax, ecx
xor eax, dword [ebp - 0xc]
shl edi, 0x10
mov dword [esi + 0x2c], eax
mov eax, dword [ebp - 0x14]
xor eax, dword [ebp + 0xc]
or ebx, edi
or edi, dword [ebp - 0x18]
and eax, ecx
xor eax, dword [ebp + 0xc]
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x34], eax
mov eax, dword [ebp - 0x14]
xor eax, dword [ebp - 0x10]
mov dword [esi + 0x20], edi
and eax, ecx
xor eax, dword [ebp - 0x14]
mov dword [esi + 0x30], edx
mov dword [esi + 0x3c], eax
and dword [esi + 0x40], 0
push 4
pop edi
push esi
call fcn.0001a65c
dec edi
jne 0x1a9c0
push 0xfffffffffffffffc
pop edx
push 8
mov ecx, esi
pop edi
mov ebx, dword [ecx]
mov eax, edx
and eax, 7
lea eax, [esi + eax*4 + 0x20]
xor dword [eax], ebx
add ecx, 4
inc edx
dec edi
jne 0x1a9d1
xor eax, eax
pop edi
inc eax
pop ebx
pop esi
leave
ret 8
Function at 0x4e06a8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
movzx eax, al
push ebp
shl bp, cl
rol bp, 5
pushal
jmp 0x82efac
lea ebp, [esp + 0x20]
pushfd
shr al, 3
bt di, 8
aas
sub esp, 0xffffffec
clc
sub ax, 0xcdbe
push esi
adc al, 0xb3
cmp al, dh
push edi
aam 0x49
clc
sbb ah, 0xc
jmp 0x8b05d8
pushfd
stc
test bp, dx
test dl, 0x13
xor eax, eax
add esp, 4
pushfd
push 0xb4fd0f5f
call fcn.00830d96
push ebx
aas
btr ax, ax
test ch, dl
movzx ax, cl
push edx
aam 0xda
mov eax, dword [ebp + 8]
bt dx, sp
test eax, eax
push esi
push 0xe4bb347d
pushfd
lea esp, [esp + 0xc]
je 0x8601d4
adc si, bp
bsf dx, sp
push ebp
mov esi, dword [eax + 0x3c]
push esi
add esi, eax
cmc
mov edx, dword [esi + 0x78]
call fcn.0085c2a4
inc edx
adc dh, bh
neg dword [edx]
push cs
adc bl, byte [eax - 1]
in eax, dx
fdiv st(7), st(0)
push dword [esp]
shl eax, 1
pushfd
pushfd
pushfd
lea esp, [esp + 0x14]
je 0x8330fc
pushfd
mov dword [ebp - 4], eax
pushfd
pushal
mov dword [esp + 0x24], eax
movzx ax, al
cwde
movsx ax, cl
call fcn.008acdf4

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