joyce8/EMBER2024-capa huggingface dataset:
Function at 0x103c17d
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x1004e48
call fcn.0103c4dc
cmp word [0x1000000], 0x5a4d
jne 0x103c1bb
mov eax, dword [0x100003c]
lea eax, [eax + 0x1000000]
cmp dword [eax], 0x4550
jne 0x103c1bb
movzx ecx, word [eax + 0x18]
cmp ecx, 0x10b
je 0x103c1d4
cmp ecx, 0x20b
je 0x103c1c1
and dword [ebp - 0x1c], 0
jmp 0x103c1e8
cmp dword [eax + 0x84], 0xe
jbe 0x103c1bb
xor ecx, ecx
cmp dword [eax + 0xf8], ecx
jmp 0x103c1e2
cmp dword [eax + 0x74], 0xe
jbe 0x103c1bb
xor ecx, ecx
cmp dword [eax + 0xe8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
and dword [ebp - 4], 0
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x10a4c14], 0xffffffff
or dword [0x10a4c18], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x10a4170]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x10a416c]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x10a4c10], eax
call fcn.0108900f
cmp dword [0x10a09c0], 0
jne 0x103c245
push fcn.0108900f
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0103c58f
push 0x1001344
push 0x1001340
call sub.msvcrt.dll__initterm
mov eax, dword [0x10a4168]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x10a4164]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x34], eax
push 0x100133c
push 0x1001324
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x20]
mov ecx, dword [sym.imp.msvcrt.dll___winitenv]
mov dword [ecx], eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.01028f3a
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], 0
jne 0x103c2bd
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x103c2f2
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0103c517
ret

Function at 0x103c7a7
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x10a09bc]
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0103c707
mov eax, 0x1000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x103c7f6
cmp dword [ebp - 0x1c], 5
jb 0x103c80e
jmp 0x103c80a
cmp dword [ebp - 0x10], 1
jne 0x103c80e
cmp dword [ebp - 0x1c], 4
ja 0x103c80a
jne 0x103c80e
cmp dword [ebp - 0x18], 0
jbe 0x103c80e
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x1004e84
call fcn.01035ba1
test eax, eax
jge 0x103c82f
mov byte [0x10a3e44], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
pop esi
call fcn.0103c07d
add ebp, 0x78
leave
ret
Function at 0x103dce4
Capabilities:
Encode data using base64

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax + 8]
push edi
mov edi, dword [eax]
add edi, esi
xor ebx, ebx
jmp 0x103dd9d
mov al, byte [esi]
xor cl, cl
xor dl, dl
inc esi
cmp esi, edi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
je 0x103dd16
mov cl, byte [esi]
inc esi
jmp 0x103dd1d
mov dword [ebp - 8], 0x3d
cmp esi, edi
je 0x103dd26
mov dl, byte [esi]
inc esi
jmp 0x103dd2d
mov dword [ebp - 4], 0x3d
movzx eax, al
mov ebx, eax
shr ebx, 2
movzx ebx, byte [ebx + 0x1004ec0]
mov dword [ebp - 0x10], ebx
movzx ecx, cl
and eax, 3
mov ebx, ecx
shr ebx, 4
shl eax, 4
or ebx, eax
movzx eax, byte [ebx + 0x1004ec0]
xor ebx, ebx
cmp dword [ebp - 8], ebx
mov dword [ebp - 0xc], eax
jne 0x103dd78
movzx eax, dl
and ecx, 0xf
shr eax, 6
shl ecx, 2
or eax, ecx
movzx eax, byte [eax + 0x1004ec0]
mov dword [ebp - 8], eax
cmp dword [ebp - 4], ebx
jne 0x103dd8a
and edx, 0x3f
movzx eax, byte [edx + 0x1004ec0]
mov dword [ebp - 4], eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push 4
push eax
push ebx
call fcn.0105f344
cmp eax, ebx
jl 0x103dda7
cmp esi, edi
jne 0x103dd00
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x105216f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push esi
xor esi, esi
cmp dword [ebp + 0x14], esi
push edi
mov dword [ebp - 0x14], 0xc00000e5
je 0x105218f
mov edi, dword [ebp + 0x14]
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
cmp dword [ebp + 8], esi
jne 0x105219f
mov eax, dword [ebp + 0xc]
cmp eax, esi
je 0x10521c2
cmp dword [eax], esi
jne 0x10521bd
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x20], 0x100a134
call fcn.0101cd64
jmp 0x1052311
cmp dword [ebp + 0x14], esi
jne 0x10521dc
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], esi
call fcn.0101cd64
jmp 0x1052311
lea ecx, [ebp + 0xc]
push ecx
mov dword [ebp + 0xc], esi
call fcn.01052016
cmp eax, esi
jge 0x10521fc
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x14], eax
call fcn.0101cc47
jmp 0x1052311
push ebx
push dword [ebp + 0xc]
mov dword [ebp + 8], esi
call sub.msvcrt.dll_wcslen
pop ecx
push 2
push eax
push dword [ebp + 0xc]
lea ecx, [ebp + 8]
call fcn.01051fcd
test eax, eax
jne 0x1052233
call fcn.0104b39a
cmp eax, esi
lea ecx, [ebp + 8]
jge 0x10522ab
mov dword [ebp - 0x14], eax
jmp 0x1052303
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
lea eax, [ebp + 8]
push eax
push esi
mov dword [ebp - 4], esi
call fcn.01051f26
cmp eax, esi
jl 0x105231a
push dword [ebp - 4]
push dword [ebp + 0x10]
push 0x18
push dword [ebp + 8]
call sub.KERNEL32.dll_FindResourceExW
mov edi, eax
cmp edi, esi
je 0x105229d
push edi
push dword [ebp + 8]
call sub.KERNEL32.dll_LoadResource
mov ebx, eax
cmp ebx, esi
je 0x105229d
push edi
push dword [ebp + 8]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call sub.KERNEL32.dll_SizeofResource
cmp eax, esi
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
je 0x105229d
push ebx
call sub.KERNEL32.dll_LockResource
cmp eax, esi
mov dword [ebp - 8], eax
jne 0x10522e6
call fcn.0104b39a
mov edi, eax
cmp edi, esi
jl 0x10522d7
lea ecx, [ebp + 8]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], esi
call fcn.0104b415
lea ecx, [ebp + 0xc]
call fcn.0101cc47
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0x100a134
call fcn.0101d3f6
jmp 0x1052310
push edi
push 1
push esi
push esi
call fcn.0103cbc6
mov dword [ebp - 0x14], edi
jmp 0x1052300
mov edx, dword [ebp + 0x14]
lea ecx, [ebp - 0x10]
call fcn.0103cf44
cmp eax, esi
jl 0x105231a
lea ecx, [ebp + 8]
call fcn.0104b415
mov dword [ebp - 0x14], esi
lea ecx, [ebp + 8]
call fcn.0104b415
lea ecx, [ebp + 0xc]
call fcn.0101cc47
pop ebx
mov eax, dword [ebp - 0x14]
pop edi
pop esi
leave
ret 0x10
mov dword [ebp - 0x14], eax
jmp 0x1052300
Function at 0x105250d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [ebp + 0x10]
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
push edi
mov dword [ebp - 0x24], 0xc00000e5
je 0x1052530
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
cmp dword [ebp + 8], ebx
jne 0x1052539
cmp eax, ebx
jne 0x1052548
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x28], ebx
jmp 0x1052615
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
or dword [ebp - 8], 0xffffffff
shr ecx, 1
push ecx
push dword [eax + 8]
lea ecx, [ebp + 8]
mov byte [ebp - 0xc], bl
mov dword [ebp + 8], ebx
call fcn.0101eaba
test eax, eax
jne 0x105258b
call fcn.0104b39a
cmp eax, ebx
lea ecx, [ebp + 8]
jl 0x1052584
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x28], ebx
jmp 0x1052685
mov edi, eax
jmp 0x10526dd
push ebx
push 0x80
push 3
push ebx
xor esi, esi
inc esi
push esi
push 0x80100000
push dword [ebp + 8]
call fcn.0107440f
push eax
lea ecx, [ebp - 0xc]
call fcn.010523aa
cmp eax, 0xffffffff
je 0x10525cc
xor eax, eax
mov dword [ebp - 0x14], ebx
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 8]
call fcn.01051df7
test eax, eax
jne 0x10525f0
call fcn.0104b39a
mov edi, eax
cmp edi, ebx
jl 0x10525e2
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], ebx
jmp 0x1052682
push edi
push esi
push ebx
push ebx
call fcn.0103cbc6
jmp 0x10526da
cmp dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0x14]
jl 0x105262c
jg 0x10525ff
cmp eax, 0xffffffff
jbe 0x105262c
lea ecx, [ebp + 8]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], ebx
call fcn.0101cc47
lea ecx, [ebp - 0xc]
call fcn.01052466
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], 0x100a134
call fcn.0101cd64
mov edi, dword [ebp - 0x24]
jmp 0x10526ea
lea ecx, [ebp - 0x20]
push ecx
push eax
mov edi, eax
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
call fcn.0103ccfa
cmp eax, ebx
jge 0x105264f
mov edi, eax
jmp 0x10526d2
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp - 0x18]
push dword [ebp - 8]
call sub.KERNEL32.dll_ReadFile
test eax, eax
jne 0x10526aa
call fcn.0104b39a
mov edi, eax
cmp edi, ebx
jl 0x10526b7
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], ebx
call fcn.0101c8f5
lea ecx, [ebp + 8]
call fcn.0101cc47
lea ecx, [ebp - 0xc]
call fcn.01052466
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], 0x100a134
call fcn.0101d3f6
jmp 0x1052624
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 4]
je 0x10526c2
mov edi, 0xc0000001
push edi
push esi
push ebx
push ebx
call fcn.0103cbc6
jmp 0x10526d2
push dword [ebp + 0x10]
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], edi
call fcn.0101c927
xor edi, edi
lea ecx, [ebp - 0x20]
call fcn.0101c8f5
lea ecx, [ebp + 8]
call fcn.0101cc47
lea ecx, [ebp - 0xc]
call fcn.01052466
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x105722a
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
mov ecx, dword [ebp + 8]
push esi
push edi
push dword [ebp + 0xc]
xor eax, eax
cmp dword [ecx + 0x1c], 1
lea edi, [ebp - 4]
stosd dword es:[edi], eax
jne 0x1057256
call fcn.01057078
push eax
call sub.KERNEL32.dll_SetFileAttributesA
jmp 0x1057261
call fcn.01057050
push eax
call sub.KERNEL32.dll_SetFileAttributesW
mov esi, eax
test esi, esi
jne 0x105726f
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
pop edi
mov edx, esi
pop esi
leave
ret 8

Function at 0x105727f
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
mov ecx, dword [ebp + 8]
push esi
push edi
xor eax, eax
cmp dword [ecx + 0x1c], 1
lea edi, [ebp - 4]
stosd dword es:[edi], eax
jne 0x10572a8
call fcn.01057078
push eax
call sub.KERNEL32.dll_GetFileAttributesA
jmp 0x10572b3
call fcn.01057050
push eax
call sub.KERNEL32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
jne 0x10572c2
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
pop edi
mov edx, esi
pop esi
leave
ret 4
Function at 0x105794a
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x50
push esi
xor esi, esi
cmp dword [ebp + 8], esi
push edi
mov edi, 0xc00000e5
mov dword [ebp - 4], edi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
je 0x1057998
cmp dword [ebp + 0xc], esi
jne 0x10579d5
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], esi
call fcn.0101cd64
lea ecx, [ebp - 0x24]
call fcn.0101cd79
lea ecx, [ebp - 0x30]
call fcn.0101c8f5
lea ecx, [ebp - 0x44]
call fcn.0101cd79
lea ecx, [ebp - 0x50]
call fcn.0101c8f5
mov esi, dword [ebp - 4]
jmp 0x1057a81
push dword [ebp + 8]
lea ecx, [ebp - 0x50]
call fcn.01089c6a
cmp eax, esi
jl 0x10579f3
push dword [ebp + 0xc]
lea ecx, [ebp - 0x30]
call fcn.01089c6a
cmp eax, esi
jge 0x10579f7
mov esi, eax
jmp 0x1057a61
push esi
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.010571ac
cmp edx, esi
je 0x1057a46
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x14]
je 0x1057a17
push edi
call fcn.01047f75
cmp dword [ebp - 0x34], 1
lea ecx, [ebp - 0x30]
push 0x80
jne 0x1057a32
call fcn.01057078
push eax
call sub.KERNEL32.dll_SetFileAttributesA
jmp 0x1057a3d
call fcn.01057050
push eax
call sub.KERNEL32.dll_SetFileAttributesW
cmp eax, esi
jne 0x1057a61
call sub.KERNEL32.dll_GetLastError
push dword [ebp + 0x14]
push eax
call fcn.0104b3e2
mov edi, eax
cmp edi, esi
jge 0x1057a61
push edi
push 1
push esi
push esi
call fcn.0103cbc6
mov esi, edi
lea ecx, [ebp - 0x24]
call fcn.0101cd79
lea ecx, [ebp - 0x30]
call fcn.0101c8f5
lea ecx, [ebp - 0x44]
call fcn.0101cd79
lea ecx, [ebp - 0x50]
call fcn.0101c8f5
pop edi
mov eax, esi
pop esi
leave
ret 0x10
Function at 0x105e8bf
Capabilities:
Initialize hashing via wincrypt

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
push edi
mov eax, ecx
mov dword [ebp - 8], 0xc00000e5
call fcn.0105e83d
xor edi, edi
cmp eax, edi
mov dword [ebp + 8], eax
jne 0x105e8fb
mov esi, 0xc0000002
push esi
push 1
push edi
push edi
call fcn.0103cbc6
mov eax, esi
jmp 0x105e99f
cmp eax, 0x800c
mov dword [esi + 0x10], ecx
je 0x105e918
cmp eax, 0x800d
je 0x105e918
cmp eax, 0x800e
je 0x105e918
xor ecx, ecx
inc ecx
jmp 0x105e91b
push 0x18
pop ecx
push ebx
push 0xf0000000
push ecx
push edi
lea eax, [esi + 4]
push edi
push eax
call sub.ADVAPI32.dll_CryptAcquireContextA
test eax, eax
je 0x105e961
lea ebx, [esi + 8]
push ebx
push edi
push edi
push dword [ebp + 8]
push dword [esi + 4]
call sub.ADVAPI32.dll_CryptCreateHash
test eax, eax
je 0x105e961
push 4
pop eax
push edi
lea ecx, [ebp - 4]
push ecx
add esi, 0xc
push esi
push eax
push dword [ebx]
mov dword [ebp - 4], eax
call sub.ADVAPI32.dll_CryptGetHashParam
test eax, eax
jne 0x105e99c
call fcn.0104b39a
mov esi, eax
cmp esi, edi
jl 0x105e98e
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], 1
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x14], 0x100aab8
call fcn.0101d3f6
mov eax, dword [ebp - 8]
jmp 0x105e99e
push esi
push 1
push edi
push edi
call fcn.0103cbc6
mov eax, esi
jmp 0x105e99e
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x105f052
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
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 0x105f088
mov edx, dword [eax + 0xc]
cmp dword [ebp + 0x10], edx
jb 0x105f080
mov edi, dword [eax + 0x10]
add edi, edx
cmp dword [ebp + 0x10], edi
jb 0x105f08a
add eax, 0x28
inc esi
cmp esi, ecx
jb 0x105f06e
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x10898b8
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
cmp edi, esi
mov dword [ebp - 0x10], 0xc00000e5
je 0x1089912
cmp dword [edi], esi
jne 0x10898f4
cmp dword [edi + 4], esi
jne 0x10898f4
cmp dword [edi + 8], esi
jne 0x10898f4
mov dword [edi], esi
mov dword [edi + 4], esi
mov dword [edi + 8], esi
push ebx
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
jmp 0x1089953
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], 0x10194f4
call fcn.0101cd64
jmp 0x10899c3
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], esi
call fcn.0101cd64
jmp 0x10899c3
xor eax, eax
inc eax
cmp ebx, eax
jb 0x108997a
lea eax, [ebp - 0xc]
push eax
push ebx
call fcn.0103ccfa
cmp eax, esi
jl 0x108997f
push ebx
push dword [ebp - 4]
call sub.KERNEL32.dll_GetSystemDirectoryA
cmp eax, esi
je 0x1089960
dec ebx
cmp eax, ebx
je 0x10899ab
push esi
push esi
call sub.KERNEL32.dll_GetSystemDirectoryA
mov ebx, eax
cmp ebx, esi
jne 0x108992c
call fcn.0104b39a
mov edi, eax
cmp edi, esi
jge 0x1089984
push edi
push 1
push esi
push esi
call fcn.0103cbc6
mov dword [ebp - 0x10], edi
jmp 0x10899ba
mov dword [ebp - 0x18], eax
jmp 0x108998b
mov dword [ebp - 0x10], eax
jmp 0x10899ba
mov dword [ebp - 0x18], 1
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x14], esi
call fcn.0101c8f5
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x10194f4
call fcn.0101d3f6
jmp 0x10899c2
push edi
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], eax
call fcn.0101c927
mov dword [ebp - 0x10], esi
lea ecx, [ebp - 0xc]
call fcn.0101c8f5
pop ebx
mov eax, dword [ebp - 0x10]
pop edi
pop esi
leave
ret 4

Function at 0x108c497
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x10a09bc]
push esi
mov esi, dword [ebp + 8]
push 0x40
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ecx
push eax
call sub.KERNEL32.dll_GetEnvironmentVariableA
cmp eax, 0x40
ja 0x108c4d8
and dword [ebp - 0x48], 0
push 0x10
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x44]
push eax
call sub.msvcrt.dll_strtoul
add esp, 0xc
or dword [esi + 4], eax
mov ecx, dword [ebp - 4]
pop esi
call fcn.0103c07d
leave
ret 8
Function at 0x108c5e8
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
cmp dword [0x10a46c4], 0
mov eax, dword [0x10a09bc]
mov dword [ebp - 4], eax
jne 0x108c68a
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x108]
push eax
push 0x1019f24
call sub.KERNEL32.dll_GetEnvironmentVariableA
test eax, eax
je 0x108c689
cmp eax, esi
jae 0x108c689
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0x810
push 0
push dword [eax + 0x18]
call fcn.01047e0e
mov esi, eax
test esi, esi
je 0x108c689
mov ecx, esi
call fcn.0108c5c6
lea eax, [ebp - 0x108]
push eax
mov ecx, esi
call fcn.0108c4ea
mov ecx, esi
mov edx, 0x10a46c4
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x108c689
push 0
mov ecx, esi
call fcn.0108c5a0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push 0
push dword [eax + 0x18]
call fcn.01047e49
pop esi
mov ecx, dword [ebp - 4]
call fcn.0103c07d
leave
ret
Function at 0x1091c3f
Capabilities:
Parse credit card information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor eax, eax
push esi
mov esi, edx
push edi
mov edi, ecx
mov edx, dword [edi + 0x18]
mov ebx, dword [edi + 0x1c]
mov dword [esi + 8], eax
mov ecx, dword [edi + 0x1c]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 0x24]
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [ebp - 4], eax
mov eax, dword [edi + 0x18]
cmp dword [edi + 0x1c], eax
mov dword [ebp - 8], edx
jb 0x1091c86
mov dword [esi + 4], eax
mov dword [esi], 3
jmp 0x1091ce5
mov ecx, ebx
jmp 0x1091d08
cmp eax, 0x61
jb 0x1091c94
cmp eax, 0x7a
jbe 0x1091d00
cmp eax, 0x41
jb 0x1091c9e
cmp eax, 0x5a
jbe 0x1091d00
cmp eax, 0x30
jb 0x1091ca8
cmp eax, 0x39
jbe 0x1091d00
cmp eax, 0x3b
ja 0x1091cec
cmp eax, 0x3a
jae 0x1091d00
cmp eax, 0x21
je 0x1091d00
cmp eax, 0x22
jbe 0x1091ccb
cmp eax, 0x25
jbe 0x1091d00
cmp eax, 0x26
jbe 0x1091ccb
cmp eax, 0x2f
jbe 0x1091d00
mov eax, dword [ebp - 4]
mov dword [esi], 0xc
sub ebx, dword [edi + 0x1c]
and dword [esi + 0x14], 0
and dword [esi + 0x18], 0
mov dword [esi + 8], ebx
mov dword [esi + 0x10], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
cmp eax, 0x3d
je 0x1091d00
cmp eax, 0x3e
jbe 0x1091ccb
cmp eax, 0x40
jbe 0x1091d00
cmp eax, 0x5f
jne 0x1091ccb
inc dword [ebp - 4]
mov edx, dword [ebp - 8]
mov ebx, ecx
call dword [edi + 0x20]
cmp eax, 0xffffffff
mov ecx, edx
jne 0x1091c8a
mov eax, ecx
jmp 0x1091ce7

Function at 0x109854b
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x10a09bc]
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, dword [eax + 0x5c]
push ebx
xor ebx, ebx
cmp ecx, ebx
push edi
mov dword [ebp - 0x40c], eax
je 0x1098578
call fcn.010947cb
jmp 0x109857a
xor eax, eax
push ebx
push 1
push 3
push ebx
push ebx
push SysReAllocStringLen
push eax
call sub.KERNEL32.dll_CreateFileA
mov edi, eax
cmp edi, 0xffffffff
jne 0x109859d
call fcn.010948cf
jmp 0x1098633
push esi
push ebx
push edi
call sub.KERNEL32.dll_GetFileSize
mov esi, eax
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x408]
mov dword [ebp - 0x408], ebx
call fcn.01095067
cmp dword [ebp - 0x408], ebx
jne 0x10985cb
mov esi, 0x8007000e
jmp 0x1098611
push ebx
lea eax, [ebp - 0x410]
push eax
push esi
push dword [ebp - 0x408]
push edi
call sub.KERNEL32.dll_ReadFile
test eax, eax
jne 0x10985ef
call fcn.010948cf
mov esi, eax
cmp esi, ebx
jl 0x1098611
mov ecx, dword [ebp - 0x410]
mov eax, dword [ebp - 0x408]
mov byte [ecx + eax], bl
push dword [ebp - 0x408]
mov ecx, dword [ebp - 0x40c]
call fcn.01098363
mov esi, eax
push edi
call sub.KERNEL32.dll_CloseHandle
lea eax, [ebp - 0x404]
cmp dword [ebp - 0x408], eax
je 0x1098630
lea ecx, [ebp - 0x408]
call fcn.01094b90
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.0103c07d
leave
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x4031f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x403203
pop dword [ebp - 0x20]
mov eax, 0x403203
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0x61468858
add dword [ebp - 0x30], 0xed0bbcf3
mov dword [ebp - 0x2c], 0xe26fd16d
sub dword [ebp - 0x2c], 0xb03c8528
mov dword [ebp - 0x28], 0xc9ea16d3
sub dword [ebp - 0x28], 0x7d9dd2a5
mov dword [ebp - 0x24], 0xfc3dd6f6
add dword [ebp - 0x24], 0x3c2290a
lea eax, [ebp - 0x30]
push eax
mov eax, 0xcf6d57b5
add eax, 0x30d328d7
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0x4fe7dd64
add dword [ebp - 0x30], 0x248a8bf2
mov dword [ebp - 0x2c], 0xd00f5c15
sub dword [ebp - 0x2c], 0x8ea2faa0
mov dword [ebp - 0x28], 0xfbfd972a
sub dword [ebp - 0x28], 0x988e2abe
mov dword [ebp - 0x24], 0xf9aa3232
add dword [ebp - 0x24], 0x655cdce
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x32f05
push 0
call eax
mov ecx, 0x1bddf413
add ecx, 0xe422454e
mov edi, eax
mov ebx, 0x411000
add ebx, dword [ebp - 0x20]
mov edx, 0x19c6c5e0
add edx, 0x45aa17b
sub dword [ebp - 0x1c], 0x1bf080e4
mov esi, dword [ebx]
sub dword [ebp - 0x10], 0x8c342d82
xor esi, edx
xor dword [ebp - 4], 0x742b1398
mov dword [edi], esi
add dword [ebp - 0x1c], edi
add edi, 4
add ebx, 4
loop 0x403315
add eax, 0x4f2bb6ac
sub eax, 0x4f2ade55
mov ebx, eax
add eax, 5
mov ecx, 0x2d4d5e14
sub ecx, 0x2d0d5e14
add ecx, dword [ebp - 0x20]
call ebx
leave
ret