joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4efc46
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004efab7

Function at 0x4f02fc
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x519f94
push 0x519f8c
push str.FlsAlloc
push 0x1e
call fcn.004f0129
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4f0330
push dword [ebp + 8]
mov ecx, esi
call dword [0x514558]
call esi
jmp 0x4f0336
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4f037a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x519fa4
push 0x519f9c
push str.FlsGetValue
push 0x20
call fcn.004f0129
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4f03b1
push dword [ebp + 8]
mov ecx, esi
call dword [0x514558]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4f0d85
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004d63e0
mov eax, dword [0x57b0c0]
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.004eb673
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4f0dc7
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4f0f23
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004fd650
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 + 0x5a9468]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004f1207
mov ecx, dword [esi*4 + 0x5a9468]
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 0x4f0f1c
cmp eax, dword [edi + ecx + 0x24]
jne 0x4f0f1c
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 0x4f0f1c
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004f1207
add esp, 0x14
test edx, edx
jl 0x4f0f1c
jg 0x4f0e92
test eax, eax
jb 0x4f0f1c
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4f0f1c
jl 0x4f0eac
cmp dword [ebp - 0x1008], eax
ja 0x4f0f1c
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4f0eca
test ebx, ebx
je 0x4f0f03
cmp ecx, edi
jae 0x4f0f03
mov al, byte [ecx]
cmp al, 0xd
jne 0x4f0ee4
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4f0ef0
cmp byte [ecx + 1], 0xa
jne 0x4f0ef0
inc ecx
jmp 0x4f0ef0
movzx eax, al
movsx eax, byte [eax + 0x57b380]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4f0eca
cmp edx, ebx
jne 0x4f0eca
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4f0f21
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004d523a
leave
ret
Function at 0x4f4e2e
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 0x4f4ecb
push ebx
push esi
call fcn.004f4df7
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.004f1d7d
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4f4e78
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4f4eca
push edi
push eax
call fcn.004ed605
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4f4e98
call fcn.004eb639
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4f4ec9
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004f1d7d
add esp, 0x20
test eax, eax
jne 0x4f4eb7
push edi
call fcn.004eb639
jmp 0x4f4ebf
push ebx
call fcn.004eb639
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 0x4f4ece
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4f4edf
pop esi
ret
push ebx
push edi
push esi
call fcn.004f4df7
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004ed605
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4f4f07
push ebx
push esi
push edi
call fcn.004d6e20
add esp, 0xc
push 0
call fcn.004eb639
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4f5653
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004f517a
Function at 0x4fc4b5
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.004fc431
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4fc62d
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4fc62d
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4fc5dc
jg 0x4fc50e
test eax, eax
je 0x4fc5d2
push 1
push 0x1000
call fcn.004ef0e1
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4fc534
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x4fc5c9
push 0x8000
push ebx
call fcn.004e96cc
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 0x4fc560
jg 0x4fc55b
cmp ecx, 0x1000
jb 0x4fc560
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004ec9c3
add esp, 0x10
cmp eax, 0xffffffff
je 0x4fc5a5
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 0x4fc55b
jl 0x4fc58c
test ecx, ecx
jne 0x4fc54d
push dword [ebp - 0xc]
push ebx
call fcn.004e96cc
push esi
call fcn.004eb639
add esp, 0xc
xor edi, edi
jmp 0x4fc63e
cmp byte [edi + 0x24], 0
je 0x4fc5bc
cmp dword [edi + 0x20], 5
jne 0x4fc5bc
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4fc5c7
mov edi, dword [edi + 0x18]
jmp 0x4fc5c9
xor edi, edi
push esi
call fcn.004eb639
pop ecx
jmp 0x4fc63e
test ecx, ecx
jg 0x4fc59e
jl 0x4fc5dc
test eax, eax
jae 0x4fc59e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004f1225
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4fc5ff
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4fc59e
jmp 0x4fc636
push ebx
call fcn.004f5c38
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4fc59e
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 0x4fc63e
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4fc63b
mov edi, dword [edi + 0x18]
jmp 0x4fc63e
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004f1225
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4fd570
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4fd59d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4fd59d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1000412c
Capabilities:
Set file attributes

Disassembly:
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
ret

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

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x100045f3
or eax, eax
ret

Function at 0x1000df9d
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x100d01b8
call fcn.100cece0
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.10001da4
and dword [ebp - 4], 0
lea eax, [edi + 0xc]
push eax
lea ecx, [esi + 0xc]
call fcn.10001da4
mov eax, dword [edi + 0x18]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x18], eax
mov eax, dword [edi + 0x1c]
mov dword [esi + 0x1c], eax
mov eax, dword [edi + 0x20]
mov dword [esi + 0x20], eax
mov eax, dword [edi + 0x24]
mov dword [esi + 0x24], eax
mov eax, dword [edi + 0x28]
mov dword [esi + 0x28], eax
mov al, byte [edi + 0x2c]
mov byte [esi + 0x2c], al
mov al, byte [edi + 0x2d]
mov byte [esi + 0x2d], al
mov al, byte [edi + 0x2e]
mov byte [esi + 0x2e], al
mov al, byte [edi + 0x2f]
mov byte [esi + 0x2f], al
mov al, byte [edi + 0x30]
mov byte [esi + 0x30], al
mov al, byte [edi + 0x31]
mov byte [esi + 0x31], al
mov ax, word [edi + 0x32]
mov word [esi + 0x32], ax
mov eax, dword [edi + 0x38]
mov dword [esi + 0x38], eax
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x3c], eax
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x1001aef4
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x100d0db4
call fcn.100cece0
push ecx
push esi
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x10], esi
mov dword [esi], 0x100d9a00
mov dword [esi + 4], 0x100dbeac
mov dword [esi + 8], 0x100d97c0
mov dword [esi + 0xc], eax
mov dword [ebp - 4], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
mov dword [esi + 0x60], eax
push fcn.1000b96d
push 0x1001b0f6
push 6
lea eax, [esi + 0x160]
push 8
push eax
mov byte [ebp - 4], 7
call fcn.100cefb3
mov ecx, dword [ebp - 0xc]
mov dword [esi], 0x100dbe78
mov dword [esi + 4], 0x100dbe5c
mov dword [esi + 8], 0x100dbe4c
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x100248ea
Capabilities:
Encode data using xor

Disassembly:
mov eax, ecx
push esi
mov ecx, dword [esp + 8]
lea esi, [edx + ecx]
cmp edx, esi
je 0x10024919
push edi
movzx edi, byte [edx]
mov ecx, eax
and ecx, 0xff
xor ecx, edi
shr eax, 8
movzx ecx, word [ecx*2 + 0x100f75d0]
xor eax, ecx
inc edx
cmp edx, esi
jne 0x100248f9
pop edi
pop esi
ret 4

Function at 0x10029223
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x100d1c35
call fcn.100cece0
push ecx
push esi
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x10], esi
mov dword [esi], 0x100d9a00
mov dword [esi + 4], 0x100d9c7c
mov dword [esi + 8], eax
mov dword [ebp - 4], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 2
call fcn.1000250f
mov ecx, dword [ebp - 0xc]
mov dword [esi], 0x100dd620
mov dword [esi + 4], 0x100dd610
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x100364a6
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push ebx
push esi
push edi
push 0x14
pop eax
cmp edx, eax
jb case.0x100365b1.8
mov esi, dword [ebp + 8]
mov di, word [esi]
mov word [ecx], di
mov di, word [esi + 2]
mov bx, word [ecx]
mov word [ecx + 2], di
mov di, word [esi + 4]
mov word [ecx + 4], di
mov di, word [esi + 6]
mov word [ecx + 6], di
xor edi, edi
mov dword [ecx + 0x10], edi
mov dword [ecx + 0x18], edi
cmp bx, 2
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x1c], edi
je 0x1003660a
cmp bx, 9
je 0x10036604
cmp bx, 1
jne 0x10036532
cmp edx, 0x20
jb case.0x100365b1.8
mov eax, dword [esi + 0x10]
push 0x20
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x1c], edi
movzx eax, word [esi + 0x18]
cdq
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], edx
movzx eax, word [esi + 0x1a]
mov dword [ecx + 0xc], eax
pop eax
jmp 0x10036682
cmp bx, 8
jne 0x1003659b
push 0x28
pop eax
cmp edx, eax
jb case.0x100365b1.8
mov edx, dword [esi + 0x14]
mov dword [ecx + 0x10], edx
mov dword [ecx + 0x14], edi
mov edx, dword [esi + 0x18]
mov dword [ecx + 0x18], edx
mov dword [ecx + 0x1c], edi
movzx edx, word [esi + 0x20]
movzx ebx, word [esi + 0x22]
cmp edx, edi
mov dword [ecx + 0xc], ebx
jbe 0x10036682
lea ecx, [eax + 0xc]
cmp ecx, dword [ebp + 0xc]
ja case.0x100365b1.8
mov ecx, dword [eax + esi + 8]
lea eax, [eax + ecx + 0xd]
cmp eax, dword [ebp + 0xc]
ja case.0x100365b1.8
cmp ecx, 0x400
ja case.0x100365b1.8
inc edi
cmp edi, edx
jb 0x10036568
jmp 0x10036682
movzx edx, bx
add edx, 0xfffffffd
cmp edx, 0xb
ja case.0x100365b1.8
movzx edx, byte [edx + 0x10036699]
jmp dword [edx*4 + 0x10036689]
cmp dword [ebp + 0xc], 0x18
jb case.0x100365b1.8
mov esi, dword [esi + 0x14]
mov dword [ecx + 0x10], esi
mov dword [ecx + 0x14], edi
lea eax, [esi + 0x18]
cmp dword [ebp + 0xc], eax
jb case.0x100365b1.8
cmp esi, 0x40000000
jbe case.0x100365b1.6
jmp case.0x100365b1.8
push 0x18
pop eax
cmp dword [ebp + 0xc], eax
jb case.0x100365b1.8
cmp bx, 8
jb 0x10036682
add eax, 4
cmp dword [ebp + 0xc], eax
jb case.0x100365b1.8
jmp 0x10036682
cmp bx, 2
jne 0x10036631
cmp edx, 0x20
jb case.0x100365b1.8
mov eax, dword [esi + 0x10]
push 0x20
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x1c], edi
mov eax, dword [esi + 0x14]
mov dword [ecx + 8], eax
mov eax, dword [esi + 0x18]
mov dword [ecx + 0xc], eax
mov eax, dword [esi + 0x1c]
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], edi
jmp 0x1003665c
cmp edx, 0x38
jb case.0x100365b1.8
mov eax, dword [esi + 0x10]
push 0x38
mov dword [ecx + 0x18], eax
mov eax, dword [esi + 0x14]
mov dword [ecx + 0x1c], eax
mov eax, dword [esi + 0x18]
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 0x1c]
mov dword [ecx + 0x14], eax
mov eax, dword [esi + 0x2c]
mov dword [ecx + 8], eax
mov eax, dword [esi + 0x30]
mov dword [ecx + 0xc], eax
pop esi
push dword [ebp + 0x10]
call fcn.1003645e
push edi
push 4
push edx
push eax
call fcn.100cee60
xor ecx, ecx
add eax, esi
adc edx, ecx
cmp edx, ecx
ja case.0x100365b1.8
jb 0x10036682
cmp eax, dword [ebp + 0xc]
jbe 0x10036682
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x1003687e
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x100d2a11
call fcn.100cece0
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], 0x100dee40
mov dword [esi + 4], 0x100dee30
lea ecx, [esi + 0x158]
mov dword [ebp - 4], 0xf
call fcn.100c98e0
mov eax, dword [esi + 0x85c]
test eax, eax
je 0x100368b3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [esi + 0x850]
call fcn.100034b3
mov eax, dword [esi + 0x154]
pop ecx
test eax, eax
mov byte [ebp - 4], 0xd
je 0x100368d3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0x14c]
mov byte [ebp - 4], 0xc
test eax, eax
je 0x100368e7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0x144]
mov byte [ebp - 4], 0xb
test eax, eax
je 0x100368fb
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [esi + 0x128]
call fcn.100034b3
push dword [esi + 0x11c]
call fcn.100034b3
push dword [esi + 0x110]
call fcn.100034b3
mov eax, dword [esi + 0xf8]
add esp, 0xc
test eax, eax
mov byte [ebp - 4], 7
je 0x10036933
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [esi + 0x7c]
call fcn.100034b3
pop ecx
mov byte [ebp - 4], 5
lea ecx, [esi + 0x5c]
call fcn.10036984
lea ecx, [esi + 0x3c]
mov byte [ebp - 4], 4
call fcn.10036984
push dword [esi + 0x30]
call fcn.100034b3
push dword [esi + 0x24]
call fcn.100034b3
push dword [esi + 0x18]
call fcn.100034b3
push dword [esi + 0xc]
call fcn.100034b3
mov ecx, dword [ebp - 0xc]
add esp, 0x10
mov dword fs:[0], ecx
pop esi
leave
ret

Function at 0x1003bdf2
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x100d2e20
call fcn.100cece0
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.10001da4
and dword [ebp - 4], 0
lea eax, [edi + 0xc]
push eax
lea ecx, [esi + 0xc]
call fcn.10001da4
mov eax, dword [edi + 0x18]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x18], eax
mov eax, dword [edi + 0x1c]
mov dword [esi + 0x1c], eax
mov eax, dword [edi + 0x20]
mov dword [esi + 0x20], eax
mov eax, dword [edi + 0x24]
mov dword [esi + 0x24], eax
mov al, byte [edi + 0x28]
mov byte [esi + 0x28], al
mov al, byte [edi + 0x29]
mov byte [esi + 0x29], al
mov al, byte [edi + 0x2a]
mov byte [esi + 0x2a], al
mov al, byte [edi + 0x2b]
mov byte [esi + 0x2b], al
mov al, byte [edi + 0x2c]
mov byte [esi + 0x2c], al
mov eax, dword [edi + 0x30]
mov dword [esi + 0x30], eax
mov eax, dword [edi + 0x34]
mov dword [esi + 0x34], eax
mov eax, dword [edi + 0x38]
mov dword [esi + 0x38], eax
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x1003d163
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x100d2f94
call fcn.100cece0
push ecx
push esi
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x10], esi
mov dword [esi], 0x100d9a00
mov dword [esi + 4], 0x100d97c0
mov dword [esi + 8], eax
mov dword [ebp - 4], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 3
call fcn.1000250f
mov al, byte [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov byte [esi + 0x40], al
mov dword [esi], 0x100dfbf0
mov dword [esi + 4], 0x100dfbe0
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x1003d1f9
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x100d2fca
call fcn.100cece0
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [esi + 0x30]
mov dword [ebp - 4], 2
call fcn.100034b3
pop ecx
lea ecx, [esi + 0x24]
call fcn.1001dbf6
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 1
call fcn.1003d394
and byte [ebp - 4], 0
lea ecx, [esi + 0xc]
call fcn.1003d2d7
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x10041977
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get ntdll base address

Disassembly:
mov eax, 0x100d347d
call fcn.100cece0
push ecx
push esi
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x10], esi
mov byte [esi], al
mov byte [esi + 1], al
mov byte [esi + 2], al
mov byte [esi + 3], al
mov byte [esi + 4], al
mov byte [esi + 5], al
mov byte [esi + 6], al
mov byte [esi + 7], al
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [ebp - 4], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
lea ecx, [esi + 0x58]
mov byte [ebp - 4], 2
call fcn.100416f8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x10058bf0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, edx
xor eax, eax
cmp esi, 8
jb 0x10058c0f
push edi
shr edx, 3
mov edi, dword [ecx + 4]
sub esi, 8
xor edi, dword [ecx]
add ecx, 8
xor eax, edi
dec edx
jne 0x10058bfe
pop edi
cmp esi, 4
jb 0x10058c19
xor eax, dword [ecx]
add ecx, 4
and esi, 3
cmp esi, 2
jbe 0x10058c2a
movzx edx, byte [ecx]
shl edx, 0x10
xor eax, edx
inc ecx
cmp esi, 1
jbe 0x10058c36
xor edx, edx
mov dh, byte [ecx]
xor eax, edx
inc ecx
test esi, esi
pop esi
jbe 0x10058c40
movzx ecx, byte [ecx]
xor eax, ecx
ret

Function at 0x1006500b
Capabilities:
Parse credit card information

Disassembly:
mov edx, dword [ecx + 0x3c]
cmp edx, 2
jge 0x10065024
cmp byte [ecx + 0x42], 0
mov eax, dword [esp + 4]
je 0x10065089
cmp eax, 0x3f
jb 0x10065089
jmp 0x10065078
mov eax, dword [esp + 4]
cmp eax, 0x2c
jb 0x10065089
cmp edx, 3
jl 0x1006503c
cmp eax, 0x2c
jne 0x1006503b
push 0x48
jmp 0x10065088
dec eax
cmp edx, 4
jl 0x1006504b
cmp eax, 0x2c
jne 0x1006504a
push 0x49
jmp 0x10065088
dec eax
cmp eax, 0x3a
jb 0x10065089
cmp byte [ecx + 0x14], 0
je 0x1006506a
cmp eax, 0x3a
jne 0x1006505f
push 0x44
jmp 0x10065088
cmp eax, 0x3b
jne 0x10065068
push 0x45
jmp 0x10065088
dec eax
dec eax
cmp eax, 0x3f
jb 0x10065081
cmp byte [ecx + 0x42], 0
je 0x10065081
cmp eax, 0x3f
jne 0x1006507e
push 0x46
jmp 0x10065088
dec eax
jmp 0x10065089
cmp eax, 0x44
jne 0x10065089
push 0x47
pop eax
ret 4

Function at 0x1006660c
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get ntdll base address

Disassembly:
mov eax, 0x100d5993
call fcn.100cece0
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esi
or dword [esi + 0x24], 0xffffffff
lea ecx, [esi + 0x30]
mov byte [esi], 1
mov byte [esi + 1], bl
mov byte [esi + 2], bl
mov byte [esi + 3], bl
mov byte [esi + 4], bl
mov byte [esi + 5], bl
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], 1
mov dword [esi + 0x20], ebx
call fcn.10001d48
lea ecx, [esi + 0x3c]
mov dword [ebp - 4], ebx
call fcn.1000250f
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret