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

Disassembly:
mov edx, dword [esp + 8]
push esi
push edi
cmp word [edx + 0xc], 0xffff
movzx eax, byte [edx + 6]
je 0x1001dfaa
mov eax, dword [esp + 0x14]
or word [eax], 2
movsd xmm0, qword [edx + 6]
movsd qword [eax + 0x10], xmm0
xor eax, eax
pop edi
pop esi
ret 0x10
sub eax, 0
je 0x1001dfe7
dec eax
je 0x1001dfd1
dec eax
jne 0x1001dfa3
mov esi, dword [esp + 0x14]
or word [esi], 8
movzx eax, byte [edx + 8]
push eax
call fcn.1001aae0
mov dword [esi + 0x10], eax
xor eax, eax
pop edi
pop esi
ret 0x10
mov ecx, dword [esp + 0x14]
pop edi
pop esi
or word [ecx], 4
movzx eax, byte [edx + 8]
mov dword [ecx + 0x10], eax
xor eax, eax
ret 0x10
test byte [esp + 0x18], 1
je 0x1001dfa3
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
push esi
call fcn.1001c5a0
test eax, eax
jne 0x1001dfa5
mov eax, dword [esp + 0x10]
mov ecx, 0x221
cmp ax, cx
je 0x1001e019
mov ecx, 0x4bc
cmp ax, cx
jne 0x1001e03b
lea eax, [esp + 0x10]
push eax
push esi
call fcn.1001d540
lea eax, [esp + 0x10]
push eax
push esi
call fcn.1001c5a0
test eax, eax
jne 0x1001dfa5
mov eax, dword [esp + 0x10]
mov ecx, 0x207
cmp ax, cx
jne 0x1001dfa3
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x14]
push eax
or word [edi], 0x10
push esi
call fcn.1001c610
test eax, eax
jne 0x1001dfa5
mov eax, dword [esp + 0x18]
movzx ecx, word [eax]
add eax, 2
push ecx
push eax
lea eax, [esp + 0x1c]
push eax
push dword [esi + 0x18]
push dword [esi + 4]
call fcn.1001b6b0
test eax, eax
js 0x1001dfa5
push ebx
mov ebx, dword [esp + 0x18]
push 1
shr eax, 1
push eax
push ebx
push dword [esi + 0x10]
call fcn.10030f00
mov dword [edi + 0x10], eax
cmp ebx, 0x100528e0
je 0x1001e0b1
push ebx
call fcn.10032480
cmp dword [edi + 0x10], 0xffffffff
pop ebx
jne 0x1001dfa3
pop edi
mov eax, 0xfffffffe
pop esi
ret 0x10
Function at 0x1002e360
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esp + 0x18]
xor ecx, ecx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x28]
mov eax, edi
cdq
xor eax, edx
sub eax, edx
mov dword [esp + 0x24], eax
lea ebp, [eax + 1]
cmp ebp, dword [esp + 0x18]
jle 0x1002e38f
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x20
test edi, edi
js 0x1002e3bf
jle 0x1002e3b2
mov edx, edi
movzx eax, word [ebx]
test ax, ax
jne 0x1002e3a6
mov eax, 0x30
jmp 0x1002e3a9
add ebx, 2
mov word [esi], ax
add esi, 2
dec edx
jne 0x1002e397
mov eax, 0x2e
mov word [esi], ax
add esi, 2
jmp 0x1002e3f3
mov edx, dword [esp + 0x14]
mov esi, 0x2e
mov word [edx], si
lea esi, [edx + 2]
test eax, eax
jle 0x1002e3ed
mov ecx, eax
mov edi, esi
shr ecx, 1
mov eax, 0x300030
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov eax, dword [esp + 0x24]
xor ecx, ecx
lea esi, [esi + eax*2]
xor edi, edi
mov dword [esp + 0x28], edi
movzx edx, word [ebx]
test dx, dx
je 0x1002e41e
sub ebx, esi
lea ecx, [ecx]
inc ebp
cmp ebp, dword [esp + 0x18]
jg 0x1002e386
mov word [esi], dx
inc ecx
movzx eax, word [ebx + esi + 2]
add esi, 2
mov edx, eax
test ax, ax
jne 0x1002e400
mov ebx, dword [esp + 0x20]
xor eax, eax
mov word [esi], ax
cmp ecx, ebx
jge 0x1002e476
mov edx, ebx
sub edx, ecx
add ebp, edx
cmp ebp, dword [esp + 0x18]
jg 0x1002e386
mov esi, dword [esp + 0x14]
mov ecx, esi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002e444
sub ecx, edi
sar ecx, 1
lea esi, [esi + ecx*2]
test edx, edx
jle 0x1002e46f
mov ecx, edx
mov edi, esi
shr ecx, 1
lea esi, [esi + edx*2]
mov eax, 0x300030
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
xor eax, eax
mov word [esi], ax
jmp 0x1002e48c
jle 0x1002e48c
push ebx
push ecx
push dword [esp + 0x1c]
call fcn.1002e680
test eax, eax
je 0x1002e48c
inc edi
mov dword [esp + 0x28], edi
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
mov dword [ecx], 0
cmp eax, esi
jge 0x1002e506
sub esi, eax
lea eax, [esi + ebp]
cmp eax, dword [esp + 0x18]
jg 0x1002e386
mov ebp, dword [esp + 0x14]
mov ecx, ebp
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002e4c0
sub ecx, edx
sar ecx, 1
lea eax, [ecx + esi]
lea edx, [ebp + eax*2]
lea edi, [ebp + ecx*2]
js 0x1002e4ee
sub edi, edx
inc ecx
nop
mov ax, word [edi + edx]
lea edx, [edx - 2]
mov word [edx + 2], ax
dec ecx
jne 0x1002e4e0
test esi, esi
jle 0x1002e510
mov ecx, esi
mov eax, 0x300030
shr ecx, 1
mov edi, ebp
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
jmp 0x1002e510
mov ebp, dword [esp + 0x14]
jle 0x1002e510
sub eax, esi
mov dword [ecx], eax
mov ecx, ebp
xor edx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002e517
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 - 2]
movzx ecx, word [eax + ebp]
add eax, ebp
cmp ecx, 0x2e
je 0x1002e552
jmp 0x1002e540
lea eax, [eax - 2]
cmp cx, 0x30
jne 0x1002e552
movzx ecx, word [eax]
inc edx
cmp ecx, 0x2e
jne 0x1002e540
mov eax, dword [esp + 0x30]
sub ebx, edx
pop edi
pop esi
pop ebp
mov dword [eax], ebx
mov eax, 1
pop ebx
ret 0x20
Function at 0x10032800
Capabilities:
Delete file

Disassembly:
jmp 0x100395f0
sub esp, 0x218
mov eax, dword [0x1004f8f4]
xor eax, esp
mov dword [esp + 0x214], eax
cmp dword [0x100512c4], 0
mov eax, dword [esp + 0x21c]
je 0x10039632
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.1003a833
add esp, 0x218
ret 4
push esi
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.100391a0
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
lea ecx, [esp + 0xc]
mov eax, dword [esp + 8]
cmp eax, ecx
je 0x10039680
mov ecx, eax
shr ecx, 0x10
test ecx, ecx
je 0x10039680
cmp dword [esp + 4], 0xffffffff
je 0x10039680
push eax
call fcn.1003d92d
add esp, 4
mov ecx, dword [esp + 0x218]
mov eax, esi
pop esi
xor ecx, esp
call fcn.1003a833
add esp, 0x218
ret 4
Function at 0x10039430
Capabilities:
Create directory

Disassembly:
sub esp, 0x218
mov eax, dword [0x1004f8f4]
xor eax, esp
mov dword [esp + 0x214], eax
cmp dword [0x100512c4], 0
mov eax, dword [esp + 0x21c]
push esi
mov esi, dword [esp + 0x224]
je 0x1003947c
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop esi
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.1003a833
add esp, 0x218
ret 8
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.100391a0
cmp dword [esp + 0x214], 0x104
jl 0x100394b4
push 0xa1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x100394c1
push esi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, eax
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
cmp edx, eax
je 0x100394e6
mov ecx, edx
shr ecx, 0x10
test ecx, ecx
je 0x100394e6
cmp dword [esp + 4], 0xffffffff
je 0x100394e6
push edx
call fcn.1003d92d
add esp, 4
mov ecx, dword [esp + 0x218]
mov eax, esi
pop esi
xor ecx, esp
call fcn.1003a833
add esp, 0x218
ret 8

Function at 0x100395f0
Capabilities:
Delete file

Disassembly:
jmp 0x100395f0
sub esp, 0x218
mov eax, dword [0x1004f8f4]
xor eax, esp
mov dword [esp + 0x214], eax
cmp dword [0x100512c4], 0
mov eax, dword [esp + 0x21c]
je 0x10039632
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.1003a833
add esp, 0x218
ret 4
push esi
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.100391a0
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
lea ecx, [esp + 0xc]
mov eax, dword [esp + 8]
cmp eax, ecx
je 0x10039680
mov ecx, eax
shr ecx, 0x10
test ecx, ecx
je 0x10039680
cmp dword [esp + 4], 0xffffffff
je 0x10039680
push eax
call fcn.1003d92d
add esp, 4
mov ecx, dword [esp + 0x218]
mov eax, esi
pop esi
xor ecx, esp
call fcn.1003a833
add esp, 0x218
ret 4

Function at 0x10039860
Capabilities:
Get common file path

Disassembly:
sub esp, 0x21c
mov eax, dword [0x1004f8f4]
xor eax, esp
mov dword [esp + 0x218], eax
cmp dword [0x100512c4], 0
mov eax, dword [esp + 0x220]
mov ecx, dword [esp + 0x224]
je 0x100398aa
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.1003a833
add esp, 0x21c
ret 8
push esi
push eax
push ecx
lea ecx, [esp + 0xc]
call fcn.10038f90
mov eax, dword [esp + 0x218]
push dword [esp + 8]
add eax, eax
shr eax, 1
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [esp + 4]
mov esi, eax
call fcn.10039130
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
cmp edx, eax
je 0x100398fc
mov ecx, edx
shr ecx, 0x10
test ecx, ecx
je 0x100398fc
cmp dword [esp + 4], 0xffffffff
je 0x100398fc
push edx
call fcn.1003d92d
add esp, 4
mov ecx, dword [esp + 0x21c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.1003a833
add esp, 0x21c
ret 8
Function at 0x10039920
Capabilities:
Get file attributes

Disassembly:
sub esp, 0x218
mov eax, dword [0x1004f8f4]
xor eax, esp
mov dword [esp + 0x214], eax
cmp dword [0x100512c4], 0
mov eax, dword [esp + 0x21c]
je 0x10039962
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.1003a833
add esp, 0x218
ret 4
push esi
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.100391a0
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
lea ecx, [esp + 0xc]
mov eax, dword [esp + 8]
cmp eax, ecx
je 0x100399b0
mov ecx, eax
shr ecx, 0x10
test ecx, ecx
je 0x100399b0
cmp dword [esp + 4], 0xffffffff
je 0x100399b0
push eax
call fcn.1003d92d
add esp, 4
mov ecx, dword [esp + 0x218]
mov eax, esi
pop esi
xor ecx, esp
call fcn.1003a833
add esp, 0x218
ret 4

Function at 0x10039b10
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x21c
mov eax, dword [0x1004f8f4]
xor eax, esp
mov dword [esp + 0x218], eax
cmp dword [0x100512c4], 0
mov eax, dword [esp + 0x228]
mov ecx, dword [esp + 0x22c]
je 0x10039b68
push ecx
push eax
push dword [esp + 0x22c]
push dword [esp + 0x22c]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.1003a833
add esp, 0x21c
ret 0x10
push esi
push ecx
push eax
lea ecx, [esp + 0xc]
call fcn.10038f90
mov eax, dword [esp + 0x218]
add eax, eax
shr eax, 1
push eax
push dword [esp + 0xc]
push dword [esp + 0x230]
push dword [esp + 0x230]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea ecx, [esp + 4]
call fcn.10039130
lea ecx, [esp + 4]
mov esi, eax
call fcn.10039130
mov eax, dword [esp + 8]
lea ecx, [esp + 0xc]
cmp eax, ecx
je 0x10039bd1
mov ecx, eax
shr ecx, 0x10
test ecx, ecx
je 0x10039bd1
cmp dword [esp + 4], 0xffffffff
je 0x10039bd1
push eax
call fcn.1003d92d
add esp, 4
mov ecx, dword [esp + 0x21c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.1003a833
add esp, 0x21c
ret 0x10

Function at 0x10039cc0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x21c
mov eax, dword [0x1004f8f4]
xor eax, esp
mov dword [esp + 0x218], eax
cmp dword [0x100512c4], 0
mov eax, dword [esp + 0x220]
mov ecx, dword [esp + 0x224]
je 0x10039d0a
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.1003a833
add esp, 0x21c
ret 8
push esi
push eax
push ecx
lea ecx, [esp + 0xc]
call fcn.10038f90
mov eax, dword [esp + 0x218]
push dword [esp + 8]
add eax, eax
shr eax, 1
push eax
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 4]
call fcn.10039130
mov esi, eax
test esi, esi
jle 0x10039d3c
dec esi
lea ecx, [esp + 4]
call fcn.10039130
mov eax, dword [esp + 8]
lea ecx, [esp + 0xc]
cmp eax, ecx
je 0x10039d6a
mov ecx, eax
shr ecx, 0x10
test ecx, ecx
je 0x10039d6a
cmp dword [esp + 4], 0xffffffff
je 0x10039d6a
push eax
call fcn.1003d92d
add esp, 4
mov ecx, dword [esp + 0x21c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.1003a833
add esp, 0x21c
ret 8
Function at 0x10039f30
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x440
mov eax, dword [0x1004f8f4]
xor eax, esp
mov dword [esp + 0x43c], eax
cmp dword [0x100512c4], 0
mov eax, dword [esp + 0x450]
mov ecx, dword [esp + 0x454]
mov edx, dword [esp + 0x448]
push ebx
mov ebx, dword [esp + 0x448]
push ebp
mov ebp, dword [esp + 0x454]
push esi
mov esi, dword [esp + 0x464]
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
je 0x10039f96
push esi
push ecx
push eax
push ebp
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
jmp 0x1003a12f
push 0xffffffffffffffff
push edx
lea ecx, [esp + 0x240]
mov dword [esp + 0x240], 0
mov dword [esp + 0x244], 0
call fcn.100391a0
lea eax, [esp + 0x10]
push eax
push 0
lea eax, [esp + 0x24]
push eax
push ebp
push dword [esp + 0x24c]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
test edi, edi
jne 0x1003a101
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x1003a0e6
cmp eax, 2
jbe 0x1003a068
cmp eax, 7
jne 0x1003a0e6
mov eax, dword [esi]
lea ecx, [esp + 0x20]
shr eax, 1
push eax
push dword [esp + 0x1c]
call fcn.10038f90
mov eax, dword [esp + 0x234]
add eax, eax
shr eax, 1
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x28]
mov eax, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [esp + 0x1c]
push ebp
push dword [esp + 0x24c]
push ebx
call eax
mov ecx, dword [esp + 0x10]
mov edi, eax
lea eax, [ecx + ecx]
mov dword [esi], eax
test edi, edi
je 0x1003a055
lea ecx, [esp + 0x20]
call fcn.10039010
jmp 0x1003a101
cmp dword [esp + 0x24], 0
je 0x1003a0d6
push ecx
lea ecx, [esp + 0x24]
call fcn.100390d0
jmp 0x1003a0d0
mov eax, dword [esi]
lea ecx, [esp + 0x20]
shr eax, 1
push eax
push dword [esp + 0x1c]
call fcn.10038f90
mov eax, dword [esp + 0x234]
add eax, eax
shr eax, 1
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x28]
mov eax, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [esp + 0x1c]
push ebp
push dword [esp + 0x24c]
push ebx
call eax
mov ecx, dword [esp + 0x10]
mov edi, eax
lea eax, [ecx + ecx]
mov dword [esi], eax
test edi, edi
je 0x1003a0c0
lea ecx, [esp + 0x20]
call fcn.10039010
jmp 0x1003a101
cmp dword [esp + 0x24], 0
je 0x1003a0d6
lea ecx, [esp + 0x20]
call fcn.10039130
mov ecx, eax
mov dword [esp + 0x10], ecx
lea eax, [ecx + ecx]
lea ecx, [esp + 0x20]
mov dword [esi], eax
call fcn.10039010
jmp 0x1003a101
mov eax, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push ebp
push dword [esp + 0x24c]
push ebx
call eax
mov edi, eax
mov ecx, dword [esp + 0x23c]
lea eax, [esp + 0x240]
cmp ecx, eax
je 0x1003a12f
mov eax, ecx
shr eax, 0x10
test eax, eax
je 0x1003a12f
cmp dword [esp + 0x238], 0xffffffff
je 0x1003a12f
push ecx
call fcn.1003d92d
add esp, 4
mov ecx, dword [esp + 0x44c]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1003a833
add esp, 0x440
ret 0x18
Function at 0x1003a150
Capabilities:
Delete directory

Disassembly:
sub esp, 0x218
mov eax, dword [0x1004f8f4]
xor eax, esp
mov dword [esp + 0x214], eax
cmp dword [0x100512c4], 0
mov eax, dword [esp + 0x21c]
je 0x1003a192
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.1003a833
add esp, 0x218
ret 4
push esi
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.100391a0
cmp dword [esp + 0x214], 0x104
jl 0x1003a1cb
push 0xa1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x1003a1d7
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov esi, eax
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
cmp edx, eax
je 0x1003a1fc
mov ecx, edx
shr ecx, 0x10
test ecx, ecx
je 0x1003a1fc
cmp dword [esp + 4], 0xffffffff
je 0x1003a1fc
push edx
call fcn.1003d92d
add esp, 4
mov ecx, dword [esp + 0x218]
mov eax, esi
pop esi
xor ecx, esp
call fcn.1003a833
add esp, 0x218
ret 4

Function at 0x1003a220
Capabilities:
Set current directory

Disassembly:
sub esp, 0x218
mov eax, dword [0x1004f8f4]
xor eax, esp
mov dword [esp + 0x214], eax
cmp dword [0x100512c4], 0
mov eax, dword [esp + 0x21c]
je 0x1003a262
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.1003a833
add esp, 0x218
ret 4
push esi
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.100391a0
cmp dword [esp + 0x214], 0x104
jl 0x1003a29b
push 0xa1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x1003a2a7
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov esi, eax
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
cmp edx, eax
je 0x1003a2cc
mov ecx, edx
shr ecx, 0x10
test ecx, ecx
je 0x1003a2cc
cmp dword [esp + 4], 0xffffffff
je 0x1003a2cc
push edx
call fcn.1003d92d
add esp, 4
mov ecx, dword [esp + 0x218]
mov eax, esi
pop esi
xor ecx, esp
call fcn.1003a833
add esp, 0x218
ret 4
Function at 0x10047d98
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1004f8f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.10040aad
mov dword [ebp - 0x14], eax
cmp dword [0x10052090], esi
jne 0x10047e8b
push 0x800
push esi
push 0x10009f3c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x10047e18
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x10047f6b
push esi
push esi
push 0x10009f3c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x10047f6b
push 0x10009f54
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10047f6b
push eax
call ebx
push 0x10009f60
push edi
mov dword [0x10052090], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10009f70
push edi
mov dword [0x10052094], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10009f84
push edi
mov dword [0x10052098], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x100520a0], eax
test eax, eax
je 0x10047e88
push 0x10009fa0
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1005209c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x10047eb0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10047ea3
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x10047ec5
push 4
pop eax
jmp 0x10047f6d
cmp dword [ebp - 0x14], esi
je 0x10047ec5
push dword [0x10052090]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x10047eaa
mov eax, dword [0x1005209c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x10047f23
cmp dword [0x100520a0], edi
je 0x10047f23
push eax
call ebx
push dword [0x100520a0]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x10047f23
test eax, eax
je 0x10047f23
call ecx
test eax, eax
je 0x10047f18
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x10047f18
test byte [ebp - 8], 1
jne 0x10047f23
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x10047f53
mov eax, dword [0x10052094]
cmp eax, edi
je 0x10047f50
push eax
call ebx
test eax, eax
je 0x10047f50
call eax
mov esi, eax
test esi, esi
je 0x10047f50
mov eax, dword [0x10052098]
cmp eax, edi
je 0x10047f50
push eax
call ebx
test eax, eax
je 0x10047f50
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x10052090]
call ebx
test eax, eax
je 0x10047f6b
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x10047f6d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003a833
mov esp, ebp
pop ebp
ret
Function at 0x1005a4e9
Capabilities:
Encode data using xor

Disassembly:
call 0x1005a462
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or eax, dword [ebx - 0x178f73c]
xor esi, 0xde5af04
add eax, esi
lea esp, [esp - 0xe]
mov esi, dword [esp + 0xe]
lea esp, [esp + 0x12]
xor esi, dword [esp]
push eax
sub eax, 0xf24f2b00
mov eax, esp
or dword [eax - 0x22], ebx
pop eax
jmp 0x1005a492
xor dword [esp], esi
xor eax, 0
mov dword [esp], esi
add esp, 4
add esi, dword [ebp + 8]
push ebp
add ebp, 0xc
mov ecx, dword [ebp]
pop ebp
ja 0x1005a4ae
xor edx, 0
jmp 0x1005a4b9
xor edx, edx
jmp 0x1005a4d0
jmp 0x1005a4dc
xor eax, eax
push 0x8427d7c0
call 0x1005a4e9
stc
add esp, 8
add esi, 0
cmp ecx, 0
je 0x1005a525
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
add bl, dl
xor byte [esi], bl
mov dl, byte [esi]
inc esi
add ebx, edi
rol ebx, 8
dec ecx
jne 0x1005a4fe
lea esp, [esp - 4]
xchg dword [esp], ebx
mov ebx, dword [esp]
or eax, edx
xor eax, eax
add eax, dword [esp]
add esp, 4
pop esi
pop edi
pop ebx
xchg dword [esp], ecx
mov dword [esp], ecx
lea esp, [esp + 4]
pop edx
leave
je 0x1005a53c
add eax, 0
jno 0x1005a541
add esi, 0
ret 0x10

Function at 0x1005b2aa
Capabilities:
Encode data using xor

Disassembly:
lea esp, [esp - 0x63]
mov dword [esp + 0x5f], ebx
lea esp, [esp + 0x5f]
mov ebx, 0x8dff8662
xchg dword [esp], ebx
and dword [esp], ebp
jmp 0x1005b2cc
add ebx, 0
or dword [esp], ebp
mov ebp, esp
push eax
push edi
lea esp, [esp - 4]
xchg dword [esp], ecx
pop ecx
lea esp, [esp - 4]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
cmp edi, dword [ebp + 0x14]
ja 0x1005b46e
cmp edi, dword [ebp + 0x10]
jb 0x1005b46e
lea esi, [esi]
sub esi, 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
sub esp, 0x6a
mov dword [esp + 0x66], 0xc2ccbc3c
add esp, 0x66
mov dword [esp], edi
or edi, 0xffffffff
and edi, 0xcedcf875
xor edi, 0xce9c140e
xchg dword [esp], edi
push edx
mov edx, esp
xor edx, 0
add edx, 0
push ebx
lea ebx, [edx + 4]
mov dword [ebx], eax
pop ebx
pop edx
push edi
call fcn.1005ad96
inc edi
jmp 0x1005b355
jmp 0x1005b362
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.1005ad96
inc edi
and dword [esp - 0x4e], ecx
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.1005ad96
inc edi
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push 0
sub esi, 0
add dword [esp], edx
xor edx, edx
je 0x1005b3b6
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or edx, 0x13e27bd2
push ebx
add ebx, esi
mov ebx, esp
xor dword [ebx - 0x2a], edi
fdiv qword [ecx]
jnp 0x1005b39a
pop ebx
xor edx, 0x1b7d0cc
add edx, 0xedeb415d
xchg dword [esp], edx
push edx
mov edx, esp
call int.1005b3e4
add dword [eax], 0x39
jle 0x1005b3c0
sub al, 0xf5
mov ch, al
call fcn.1005b3f9
mov dword [edi], eax
pop ecx
pop edi
pop eax
leave
ret 0x10