joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421a3c
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 0x421ad9
push ebx
push esi
call fcn.00421adc
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.0041a931
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x421a86
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x421ad8
push edi
push eax
call fcn.0041a821
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x421aa6
call fcn.0041a7e7
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x421ad7
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041a931
add esp, 0x20
test eax, eax
jne 0x421ac5
push edi
call fcn.0041a7e7
jmp 0x421acd
push ebx
call fcn.0041a7e7
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 0x423d5d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x438550]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x423d9d
cmp byte [ebx], 0xa
jne 0x423d9d
or byte [edi + eax + 0x28], 4
jmp 0x423da2
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x423ea1
mov dl, byte [eax]
cmp dl, 0x1a
je 0x423e84
inc eax
cmp dl, 0xd
je 0x423dce
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x423df4
cmp eax, ecx
jae 0x423e02
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x423db6
jmp 0x423ea1
push 0
lea eax, [ebp - 0x10]
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 0x423e7f
cmp dword [ebp - 0x10], 0
je 0x423e7f
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x438550]
test byte [eax + edi + 0x28], 0x48
je 0x423e59
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x423e44
mov byte [esi], dl
jmp 0x423e55
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x438550]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x423ea1
cmp byte [ebp - 1], 0xa
jne 0x423e68
cmp esi, ebx
jne 0x423e68
mov byte [esi], 0xa
jmp 0x423ea0
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004211e0
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x423ea1
mov byte [esi], 0xd
jmp 0x423ea0
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x438550]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x423e9e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x423ea1
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x423eaa
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x438550]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x423ef0
cmp word [ebx], dx
jne 0x423ef0
or byte [eax + edi + 0x28], 4
jmp 0x423ef5
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x424058
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x424038
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x423f36
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x423f6c
cmp eax, edx
jae 0x423f7a
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x423f11
jmp 0x424058
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x424033
cmp dword [ebp - 0x18], 0
je 0x424033
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x438550]
test byte [eax + edi + 0x28], 0x48
je 0x424009
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x423fcd
mov word [esi], cx
jmp 0x424004
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x438550]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x438550]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x438550]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x424058
pop eax
cmp word [ebp - 4], ax
jne 0x424019
cmp esi, ebx
jne 0x424019
mov word [esi], ax
jmp 0x424055
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004211e0
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x424058
push 0xd
pop eax
jmp 0x424014
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x438550]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x424052
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x424058
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x434200
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1d000]
push edi
or ebp, 0xffffffff
jmp 0x434222
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x434229
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x434218
mov eax, 1
add ebx, ebx
jne 0x43423b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x434230
jne 0x43424c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x434230
xor ecx, ecx
sub eax, 3
jb 0x434260
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4342d2
mov ebp, eax
add ebx, ebx
jne 0x43426b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x434278
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x43429c
inc ecx
add ebx, ebx
jne 0x434288
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x43427d
jne 0x434299
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43427d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4342bc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4342ad
jmp 0x43421e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4342bc
add edi, ecx
jmp 0x43421e
pop esi
mov edi, esi
mov ecx, 0x638
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4342da
cmp byte [edi], 0xa
jne 0x4342da
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 0x4342df
lea edi, [esi + 0x32000]
mov eax, dword [edi]
or eax, eax
je 0x43434e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x35678]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x35704]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x43430c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x35708]
or eax, eax
je 0x434348
mov dword [ebx], eax
add ebx, 4
jmp 0x434329
call dword [esi + 0x35718]
mov ebp, dword [esi + 0x3570c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x434382
sub esp, 0xffffff80
jmp 0x41ad1d
Function at 0x40872f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
jle 0x408827
push ebx
push esi
add ecx, 4
push edi
mov dword [ebp - 4], ecx
mov edi, 0xff
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 8]
mov eax, dword [eax + ecx*4]
mov ecx, dword [ebp - 4]
push eax
mov dword [ebp - 0x18], eax
call fcn.00404996
mov esi, edi
xor ebx, ebx
sub esi, eax
mov eax, dword [ebp + 0x1c]
inc ebx
mov eax, dword [eax]
cmp dword [ebp + 0x10], ebx
mov dword [ebp - 0x14], eax
jle 0x4087a0
mov dword [ebp - 0xc], esi
mov eax, dword [ebp - 0xc]
mov ecx, edi
cdq
idiv ecx
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp - 4]
push edx
push dword [eax + ebx*4]
call fcn.004049e0
xor dword [ebp - 0x14], eax
add dword [ebp - 0xc], esi
inc ebx
cmp ebx, dword [ebp + 0x10]
jl 0x40877d
mov ebx, dword [ebp + 0x18]
cmp dword [ebp + 0x10], 2
mov eax, dword [ebx + 4]
mov dword [ebp - 0x10], eax
jle 0x4087e5
mov eax, dword [ebp + 0x10]
add esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0xc], esi
lea esi, [eax - 3]
add ebx, 0xc
shr esi, 1
inc esi
mov eax, dword [ebp - 0xc]
mov ecx, edi
cdq
idiv ecx
mov ecx, dword [ebp - 4]
push edx
push dword [ebx]
call fcn.004049e0
xor dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0xc], eax
add ebx, 8
dec esi
jne 0x4087c3
push dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
push dword [ebp + 0xc]
call fcn.004049a4
mov ecx, dword [ebp + 8]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
lea esi, [eax + ecx]
mov ecx, dword [ebp - 4]
call fcn.004049fa
mov ecx, dword [ebp - 4]
push eax
push dword [ebp - 0x18]
call fcn.004049b7
xor byte [esi], al
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x10]
jl 0x408751
pop edi
pop esi
pop ebx
leave
ret 0x18

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x36560b42
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e04e
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x116c4bc4
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x42e06c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x100679a0
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x10067974
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x10067992
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x100679f0
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x100679d7
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x100679e0
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x100679ea
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x100679cc
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x10067956
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x10067a3d
dec eax
je 0x10067a34
sub eax, 3
je 0x10067a2b
mov dword [ebp - 4], 0x40
jmp 0x10067a5a
mov dword [ebp - 4], 4
jmp 0x10067a40
mov dword [ebp - 4], 0x20
jmp 0x10067a40
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x10067a8c
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x10067a0c
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.1006729d
mov eax, 0xff9f14e0
jne 0x10067a97
push 1
push esi
call edi
mov eax, esi
jmp 0x10067a98
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
rcr byte [edi + 0x5e], 0x5b
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10091a10
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov esi, 0x2710
test edi, edi
je 0x10091ad5
push 0x100d71c8
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strspn]
add edi, eax
push ebx
mov al, byte [edi]
mov byte [ebp + 0xb], al
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
mov ecx, dword [ebp - 4]
add esp, 0x14
mov edi, eax
mov dword [ebp - 8], edi
mov dl, byte [ecx]
inc ecx
mov dword [ebp - 4], ecx
cmp dl, 0x2e
jne 0x10091a96
mov edi, ecx
mov cl, byte [ecx]
lea eax, [ecx - 0x30]
cmp al, 9
ja 0x10091a93
test esi, esi
je 0x10091a93
movsx eax, cl
lea ecx, [edi + 1]
sub eax, 0x30
mov dword [ebp - 4], ecx
imul eax, esi
add ebx, eax
mov eax, 0x66666667
imul esi
sar edx, 2
mov esi, edx
shr esi, 0x1f
add esi, edx
jmp 0x10091a60
mov edi, dword [ebp - 8]
mov eax, edi
mov ecx, 0x7fffffff
cdq
sub ecx, ebx
mov esi, eax
mov eax, 0x14f8b589
xor esi, edx
sub esi, edx
imul ecx
sar edx, 0xd
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jg 0x10091ad5
mov eax, ebx
neg eax
cmp byte [ebp + 0xb], 0x2d
cmovne eax, ebx
imul ecx, edi, 0x186a0
pop edi
pop esi
pop ebx
add eax, ecx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x6b88158a
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
mov byte [ebp - 0x14], al
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
mov byte [ebp - 1], al
mov eax, dword [ebp + 8]
movzx edx, byte [eax + 1]
mov eax, dword [ebp + 8]
mov byte [eax], dl
mov eax, dword [ebp + 8]
lea edx, [eax + 1]
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 2]
mov byte [edx], al
mov eax, dword [ebp + 8]
lea edx, [eax + 2]
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 3]
mov byte [edx], al
mov eax, dword [ebp + 8]
lea edx, [eax + 3]
movzx eax, byte [ebp - 1]
mov byte [edx], al
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
movzx eax, al
movzx edx, byte [eax + str.cw]
mov eax, dword [ebp + 8]
mov byte [eax], dl
mov eax, dword [ebp + 8]
add eax, 1
movzx eax, byte [eax]
movzx eax, al
mov edx, dword [ebp + 8]
add edx, 1
movzx eax, byte [eax + str.cw]
mov byte [edx], al
mov eax, dword [ebp + 8]
add eax, 2
movzx eax, byte [eax]
movzx eax, al
mov edx, dword [ebp + 8]
add edx, 2
movzx eax, byte [eax + str.cw]
mov byte [edx], al
mov eax, dword [ebp + 8]
add eax, 3
movzx eax, byte [eax]
movzx eax, al
mov edx, dword [ebp + 8]
add edx, 3
movzx eax, byte [eax + str.cw]
mov byte [edx], al
mov eax, dword [ebp + 8]
movzx edx, byte [eax]
movzx eax, byte [ebp - 0x14]
movzx eax, byte [eax + 0x6b93e340]
xor edx, eax
mov eax, dword [ebp + 8]
mov byte [eax], dl
nop
leave
ret

Function at 0x6b881656
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x28
mov dword [ebp - 8], 0
jmp 0x6b88167f
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
add eax, edx
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
add edx, ecx
movzx eax, byte [eax]
mov byte [edx], al
add dword [ebp - 8], 1
cmp dword [ebp - 8], 0xf
jle 0x6b881666
mov dword [ebp - 0xc], 0x10
mov dword [ebp - 0x10], 1
jmp 0x6b88172c
mov dword [ebp - 0x14], 0
jmp 0x6b8816c2
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
add eax, edx
lea edx, [eax - 4]
mov eax, dword [ebp + 0xc]
add eax, edx
movzx eax, byte [eax]
lea ecx, [ebp - 0x19]
mov edx, dword [ebp - 0x14]
add edx, ecx
mov byte [edx], al
add dword [ebp - 0x14], 1
cmp dword [ebp - 0x14], 3
jle 0x6b8816a1
mov eax, dword [ebp - 0xc]
and eax, 0xf
test eax, eax
jne 0x6b8816ed
mov eax, dword [ebp - 0x10]
lea edx, [eax + 1]
mov dword [ebp - 0x10], edx
movzx eax, al
mov dword [esp + 4], eax
lea eax, [ebp - 0x19]
mov dword [esp], eax
call sym.KeyExpansionCore_unsigned_char__unsigned_char_
mov byte [ebp - 0x15], 0
jmp 0x6b881726
mov eax, dword [ebp - 0xc]
lea edx, [eax - 0x10]
mov eax, dword [ebp + 0xc]
add eax, edx
movzx ebx, byte [eax]
movzx eax, byte [ebp - 0x15]
movzx ecx, byte [ebp + eax - 0x19]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 0xc]
add eax, edx
xor ebx, ecx
mov edx, ebx
mov byte [eax], dl
add dword [ebp - 0xc], 1
movzx eax, byte [ebp - 0x15]
add eax, 1
mov byte [ebp - 0x15], al
cmp byte [ebp - 0x15], 3
jbe 0x6b8816f3
cmp dword [ebp - 0xc], 0xaf
jle 0x6b881698
nop
nop
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x6b881d80
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
cmp dword [ebp + 8], 0
jne 0x6b881da2
mov dword [esp], str.Error:_hModule_is_NULL._n
call sym.printf_char_const__..._
mov eax, 0
jmp 0x6b881f3f
cmp dword [ebp + 0xc], 0
jne 0x6b881dbe
mov dword [esp], str.Error:_Function_name__lpName__is_NULL._n
call sym.printf_char_const__..._
mov eax, 0
jmp 0x6b881f3f
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x6b881de6
mov dword [esp], str.Error:_Invalid_DOS_header_signature._n
call sym.printf_char_const__..._
mov eax, 0
jmp 0x6b881f3f
mov dword [esp], str.Success:_Valid_DOS_header_signature._n
call sym.printf_char_const__..._
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x6b881e24
mov dword [esp], str.Error:_Invalid_NT_header_signature._n
call sym.printf_char_const__..._
mov eax, 0
jmp 0x6b881f3f
mov dword [esp], str.Success:_Valid_NT_header_signature._n
call sym.printf_char_const__..._
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x78]
test eax, eax
jne 0x6b881e50
mov dword [esp], str.Error:_No_export_directory_found._n
call sym.printf_char_const__..._
mov eax, 0
jmp 0x6b881f3f
mov dword [esp], str.Success:_Export_directory_found._n
call sym.printf_char_const__..._
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x78]
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0x20]
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0xc], 0
jmp 0x6b881f18
mov eax, dword [ebp - 0xc]
lea edx, [eax*4]
mov eax, dword [ebp - 0x1c]
add eax, edx
mov edx, dword [eax]
mov eax, dword [ebp + 8]
add eax, edx
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._mml_strcmpA
test eax, eax
sete al
test al, al
je 0x6b881f14
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0x24]
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0x1c]
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0xc]
lea edx, [eax + eax]
mov eax, dword [ebp - 0x20]
add eax, edx
movzx eax, word [eax]
movzx eax, ax
lea edx, [eax*4]
mov eax, dword [ebp - 0x24]
add eax, edx
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov dword [esp], str.Success:_Function__s_found_at_address_0x_lx._n
call sym.printf_char_const__..._
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x28]
add eax, edx
jmp 0x6b881f3f
add dword [ebp - 0xc], 1
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x18]
cmp dword [ebp - 0xc], eax
jb 0x6b881e84
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov dword [esp], str.Error:_Function__s_not_found_in_the_export_table._n
call sym.printf_char_const__..._
mov eax, 0
leave
ret
Function at 0x6b88243e
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
cmp dword [ebp + 8], 0
je 0x6b882454
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x6b88246a
mov dword [esp], str.Error:_Invalid_module_or_API_table._n
call sym.printf_char_const__..._
mov eax, 0
jmp 0x6b882579
mov dword [esp], str.Info:_Parameters_validated._n
call sym.printf_char_const__..._
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x6b8824af
mov dword [esp], str.Error:_Invalid_DOS_header_signature._n
call sym.printf_char_const__..._
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], 1
mov eax, 0
jmp 0x6b882579
mov dword [esp], str.Info:_DOS_header_signature_validated._n
call sym.printf_char_const__..._
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 0xc]
add eax, edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x6b8824f7
mov dword [esp], str.Error:_Invalid_PE_signature._n
call sym.printf_char_const__..._
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], 1
mov eax, 0
jmp 0x6b882579
mov dword [esp], str.Info:_PE_signature_validated._n
call sym.printf_char_const__..._
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 4]
cmp ax, 0x14c
jne 0x6b88255e
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 0x18]
cmp ax, 0x10b
je 0x6b88253a
mov dword [esp], str.Error:_Invalid_optional_header_magic_for_32_bit_machine._n
call sym.printf_char_const__..._
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], 1
mov eax, 0
jmp 0x6b882579
mov dword [esp], str.Info:_32_bit_machine_type_and_magic_validated._n
call sym.printf_char_const__..._
mov dword [ebp - 0xc], 1
mov dword [esp], str.Success:_Valid_PE_format._n
call sym.printf_char_const__..._
mov eax, dword [ebp - 0xc]
jmp 0x6b882579
mov dword [esp], str.Error:_Machine_type_does_not_match_32_bit_architecture._n
call sym.printf_char_const__..._
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], 1
mov eax, 0
leave
ret