joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10041ab0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub esp, 0x20
push ebx
push ebp
push edi
lea eax, [esp + 0x10]
push eax
xor edi, edi
xor ebp, ebp
call fcn.10044af0
mov ecx, dword [esi + 0x1c]
mov dword [esi + 0x40], eax
cmp ecx, dword [esp + 0x34]
jb 0x10041b00
ja 0x10041adb
mov edx, dword [esi + 0x18]
cmp edx, dword [esp + 0x30]
jbe 0x10041b00
cmp dword [esi + 0x30], 1
je 0x10041aea
mov eax, dword [esi + 0x3c]
push edi
call fcn.10044cb0
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov eax, dword [esi + 0x3c]
push edi
call fcn.10044cb0
nop
mov eax, dword [esi + 0x30]
cmp eax, 2
jne 0x10041b2d
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
lea ebp, [esi + 0x2c]
push ebp
mov edx, ecx
mov dword [esi + 0x24], ecx
mov ecx, dword [esi + 4]
lea ebp, [esi + 0x28]
push ebp
mov dword [esi + 0x20], eax
mov ebx, dword [ecx]
push edx
mov edx, dword [ebx]
push eax
call edx
mov ebp, eax
jmp 0x10041af6
cmp eax, 3
jne 0x10041b55
mov eax, dword [esi + 0x38]
cdq
add eax, dword [esi + 0x18]
adc edx, dword [esi + 0x1c]
cmp edx, dword [esp + 0x34]
ja 0x10041b55
jb 0x10041b4a
cmp eax, dword [esp + 0x30]
ja 0x10041b55
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], edx
mov dword [esi + 0x38], edi
jmp 0x10041af6
xor ebx, ebx
test ebp, ebp
jne 0x10041b7b
cmp dword [esi + 0x30], 1
jne 0x10041b66
lea ebp, [ebx + 0xb]
jmp 0x10041b7b
mov ecx, dword [esp + 0x30]
mov eax, dword [esi + 0x18]
mov edi, dword [esi + 0x38]
mov ebx, dword [esi + 0x34]
sub edi, ecx
sub ebx, eax
add edi, eax
add ebx, ecx
mov eax, dword [0x100d3eb4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
add dword [eax + 4], 0xffffffff
jne 0x10041bad
mov ecx, dword [0x100d3eb4]
push 0
push ecx
mov dword [eax], 0
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x100da79c]
test eax, eax
je 0x10041bad
call eax
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
mov dword [esi + 0x40], 0
mov dword [edx], ebx
mov dword [eax], edi
pop edi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x20
ret 0x10
Function at 0x10042710
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
inc ecx
mov edx, 4
push esi
jmp 0x10042720
movzx esi, byte [ecx - 1]
mov esi, dword [esi*4 + 0x100d7150]
xor dword [eax + 0x204], esi
movzx esi, byte [ecx]
mov esi, dword [esi*4 + 0x100d7150]
xor dword [eax + 0x208], esi
movzx esi, byte [ecx + 1]
mov esi, dword [esi*4 + 0x100d7150]
xor dword [eax + 0x20c], esi
movzx esi, byte [ecx + 2]
mov esi, dword [esi*4 + 0x100d7150]
xor dword [eax + 0x210], esi
add ecx, 4
sub edx, 1
jne 0x10042720
pop esi
ret
Function at 0x10042ce0
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, eax
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10042ce6
sub eax, edx
push edi
or edx, 0xffffffff
call fcn.100404d0
mov word [esi + 0x214], ax
shr eax, 0x10
xor ecx, ecx
mov word [esi + 0x216], ax
xor eax, eax
mov word [esi + 0x21a], ax
mov word [esi + 0x218], cx
mov byte [esi + 0x21e], cl
mov byte [esi + 0x21d], cl
mov byte [esi + 0x21c], cl
mov al, byte [edi]
add esp, 4
test al, al
je 0x10042d96
jmp 0x10042d40
add byte [esi + 0x21c], al
xor byte [esi + 0x21d], al
mov dl, byte [esi + 0x21e]
add dl, al
rol dl, 1
movzx ecx, al
mov byte [esi + 0x21e], dl
mov dx, word [ecx*4 + 0x100d7150]
xor dx, word [esi + 0x218]
movzx ax, al
xor dx, ax
mov word [esi + 0x218], dx
mov cx, word [ecx*4 + 0x100d7152]
add cx, ax
add word [esi + 0x21a], cx
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10042d40
pop edi
ret

Function at 0x10042e20
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, ecx
test edi, edi
je 0x10042eca
push ebx
mov ecx, 0x1234
add word [eax + 0x214], cx
movzx ecx, word [eax + 0x214]
mov edx, ecx
shr edx, 1
and edx, 0xff
movzx edx, word [edx*4 + 0x100d7150]
xor word [eax + 0x216], dx
mov bx, word [eax + 0x21a]
mov edx, ecx
shr edx, 1
and edx, 0xff
movzx edx, word [edx*4 + 0x100d7152]
sub word [eax + 0x218], dx
movzx edx, word [eax + 0x218]
xor edx, ecx
mov word [eax + 0x214], dx
mov edx, 1
mov ecx, edx
dec edi
ror bx, cl
inc esi
xor bx, word [eax + 0x216]
ror bx, cl
movzx ecx, bx
xor word [eax + 0x214], cx
mov word [eax + 0x21a], cx
movzx ecx, word [eax + 0x214]
shr ecx, 8
xor byte [esi - 1], cl
test edi, edi
jne 0x10042e31
pop ebx
pop edi
pop esi
ret 4
Function at 0x10044af0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
cmp byte [0x100da78b], 0
jne 0x10044afe
call fcn.10044a70
mov eax, dword [0x100d3eb4]
push edi
push eax
mov edi, 1
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10044b1e
add dword [eax + 4], edi
mov eax, dword [eax + 8]
pop edi
ret 4
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ConvertThreadToFiber]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SleepEx]
push esi
lea ecx, [ecx]
mov eax, dword [0x100da7a0]
test eax, eax
je 0x10044b4f
push 1
push 0
call eax
mov esi, eax
test esi, esi
jne 0x10044b6e
push eax
push eax
call dword [0x100da7a0]
jmp 0x10044b53
push 0
call ebx
mov esi, eax
test esi, esi
jne 0x10044b6e
inc edi
cmp edi, 0x12c
jbe 0x10044b67
mov edi, 0x12c
push 0
push edi
call ebp
jmp 0x10044b30
mov eax, dword [esp + 0x14]
mov ecx, dword [0x100d3eb4]
push eax
push ecx
mov dword [eax], 0x54626966
mov dword [eax + 4], 1
mov dword [eax + 8], esi
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, esi
pop esi
pop ebp
pop ebx
pop edi
ret 4

Function at 0x10044be0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub esp, 0x24
push esi
lea eax, [esp + 0x10]
push eax
call fcn.10044af0
mov ecx, dword [esp + 0x2c]
mov dword [esp + 4], eax
mov eax, dword [0x100da798]
mov dword [esp + 8], 0x10041a40
mov dword [esp + 0xc], ecx
test eax, eax
je 0x10044c46
lea edx, [esp + 4]
push edx
push 0x10044bb0
push 1
push 0x4000
push 0x4000
call eax
mov esi, eax
test esi, esi
jne 0x10044c61
lea eax, [esp + 4]
push eax
push 0x10044bb0
push esi
push 0x4000
push 0x4000
call dword [0x100da798]
jmp 0x10044c5b
lea ecx, [esp + 4]
push ecx
push 0x10044bb0
push 0x4000
call dword [sym.imp.KERNEL32.dll_CreateFiber]
mov esi, eax
test esi, esi
je 0x10044c6a
push 0
mov eax, esi
call fcn.10044cb0
mov edx, dword [0x100d3eb4]
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
add dword [eax + 4], 0xffffffff
jne 0x10044c9c
mov dword [eax], 0
mov eax, dword [0x100d3eb4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x100da79c]
test eax, eax
je 0x10044c9c
call eax
mov eax, esi
pop esi
add esp, 0x24
ret 4

Function at 0x10044cb0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov eax, dword [0x100d3eb4]
push eax
call edi
test esi, esi
jne 0x10044cc9
mov esi, dword [eax + 8]
mov ecx, dword fs:[0x10]
mov edx, dword [esp + 0xc]
push esi
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], 0
call dword [sym.imp.KERNEL32.dll_SwitchToFiber]
mov eax, dword [0x100d3eb4]
push eax
call edi
mov ecx, dword [eax + 0x10]
pop edi
pop esi
test ecx, ecx
je 0x10044d06
mov edx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
push edx
push eax
call ecx
add esp, 8
ret 4
Function at 0x10048140
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x100a03d8
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x100d1040]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
xor edi, edi
mov dword [esp + 0x14], edi
mov eax, dword [esi + 0x214]
cmp eax, edi
je 0x10048185
push eax
call fcn.1005758d
add esp, 4
mov dword [esi + 0x214], edi
mov eax, dword [esi + 0x210]
cmp eax, 0xffffffff
je 0x100481ab
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi + 8]
push eax
mov dword [esi + 0x210], 0xffffffff
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esi]
cmp eax, edi
je 0x100481bc
push eax
call fcn.1005758d
add esp, 4
mov dword [esi], edi
mov dword [esi + 4], edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4

Function at 0x100481e0
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
sub esp, 0x20c
mov eax, dword [0x100d1040]
xor eax, esp
mov dword [esp + 0x208], eax
mov eax, dword [esp + 0x210]
cmp eax, 0xa00000
jbe 0x1004821e
mov eax, 0x80004005
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.1005710f
add esp, 0x20c
ret 4
mov dword [esi + 0x218], ecx
xor ecx, ecx
mov dword [esi + 0x21c], eax
mov edx, 4
mul edx
seto cl
push 0x100d61b4
neg ecx
or ecx, eax
push ecx
call fcn.10057582
add esp, 8
mov dword [esi + 0x214], eax
test eax, eax
jne 0x1004826e
mov eax, 0x8007000e
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.1005710f
add esp, 0x20c
ret 4
mov ecx, dword [esi + 0x21c]
add ecx, ecx
add ecx, ecx
push ecx
push 0xff
push eax
call fcn.10059a00
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x16]
push eax
mov word [esp + 0x18], dx
call fcn.10059a00
add esp, 0x18
lea ecx, [esp]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x100482e8
cmp eax, 0x104
ja 0x100482e8
push str.WMCache_
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10048304
push 0
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x10048304
call fcn.10002c20
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.1005710f
add esp, 0x20c
ret 4
push edi
lea edi, [esi + 8]
push edi
push 0
push 0x100c4278
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x10048343
push 0
push 0x20000000
push 2
push 0
push 0
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x210], eax
cmp eax, 0xffffffff
jne 0x10048360
call fcn.10002c20
pop edi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.1005710f
add esp, 0x20c
ret 4
mov ecx, dword [esp + 0x20c]
pop edi
xor ecx, esp
xor eax, eax
call fcn.1005710f
add esp, 0x20c
ret 4
Function at 0x1004a5a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x100a0d0a
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100d1040]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x34]
xor esi, esi
cmp ebp, esi
jne 0x1004a5db
mov eax, 0x80070057
jmp 0x1004a744
push 0x100d61b4
push 0x3e8
call fcn.10057582
mov ebx, eax
add esp, 8
mov dword [esp + 0x18], ebx
mov dword [esp + 0x28], esi
cmp ebx, esi
je 0x1004a66c
push 0x3e8
push esi
push ebx
call fcn.10059a00
add esp, 0xc
push 0x100d61b4
push 0x48
call fcn.10057d0e
add esp, 8
mov dword [esp + 0x34], eax
mov byte [esp + 0x28], 1
cmp eax, esi
je 0x1004a650
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx + 0x7c]
sub edx, dword [ecx + 0x78]
mov esi, eax
test edx, 0xfffffffc
sete cl
xor edx, edx
test cl, cl
sete dl
push edx
call fcn.1004bbd0
mov edi, eax
mov dword [esp + 0x34], edi
jmp 0x1004a656
mov dword [esp + 0x34], esi
mov edi, esi
mov byte [esp + 0x28], 0
mov dword [esp + 0x1c], edi
test edi, edi
jne 0x1004a676
push ebx
call fcn.1005758d
add esp, 4
mov eax, 0x8007000e
jmp 0x1004a744
mov esi, dword [esp + 0x30]
mov eax, dword [esi + 0x7c]
sub eax, dword [esi + 0x78]
add esi, 0x6c
test eax, 0xfffffffc
jne 0x1004a6c1
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
push ecx
call fcn.1004c810
mov edi, eax
test edi, edi
jge 0x1004a6c1
mov esi, dword [esp + 0x34]
push esi
call fcn.1004bc00
push esi
call fcn.10057104
add esp, 4
lea esi, [esp + 0x18]
call fcn.1004b720
mov eax, edi
jmp 0x1004a744
lea edx, [esp + 0x1c]
push edx
mov edi, esi
call fcn.1004b6c0
lea ecx, [ecx]
push 0x3e8
push 0
push ebx
call fcn.10059a00
add esp, 0xc
mov ecx, ebx
xor edx, edx
mov al, byte [ebp]
test al, al
je 0x1004a712
inc ebp
cmp al, 0xa
je 0x1004a70c
mov byte [ecx], al
inc edx
inc ecx
cmp edx, 0x3e7
jb 0x1004a6e4
push ebx
call fcn.1005758d
add esp, 4
mov eax, 0x80004005
jmp 0x1004a744
cmp byte [ebp], 0
jne 0x1004a714
xor ebp, ebp
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
push eax
push ecx
push edx
mov ecx, ebx
call fcn.1004a770
mov esi, eax
test esi, esi
jl 0x1004a75a
cmp esi, 1
je 0x1004a75a
test ebp, ebp
jne 0x1004a6d0
lea esi, [esp + 0x18]
call fcn.1004b720
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x10
push ebx
call fcn.1005758d
add esp, 4
mov eax, esi
jmp 0x1004a744
Function at 0x1004d170
Capabilities:
Get file size

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x20]
test edi, edi
je 0x1004d2ed
cmp word [edi], 0
je 0x1004d2ed
test ebx, ebx
je 0x1004d2ed
cmp eax, 5
je 0x1004d1ab
cmp eax, 6
jne 0x1004d2ed
cmp dword [esp + 0x24], 0
mov edx, dword [esp + 0x2c]
mov dword [esi + 0x30], ecx
mov dword [esi + 0x34], edx
mov dword [esi + 0x28], eax
push 0
je 0x1004d1da
push 0
push 3
push 0
push 1
push closesocket
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x1004d263
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0x20000000
push 3
push 0
push 1
push 0xc0000000
push edi
call ebp
mov dword [esi + 8], eax
lea eax, [esi + 0xc]
push eax
mov edx, edi
mov dword [ebx], 0
mov dword [esi + 0x2c], 0
call fcn.10009fe0
cmp dword [esi + 8], 0xffffffff
jne 0x1004d273
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x1004d251
cmp eax, 0x20
je 0x1004d251
cmp eax, 0xa7
je 0x1004d251
cmp eax, 0x21
je 0x1004d251
cmp eax, 0x13
je 0x1004d251
test eax, eax
jle 0x1004d2f2
and eax, 0xffff
or eax, 0x80070000
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0x14
push 0
push 0
push 3
push 0
push 1
push closesocket
push edi
call ebp
mov dword [esi + 0x2c], 1
mov dword [ebx], 1
mov dword [esi + 8], eax
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
jne 0x1004d28a
call fcn.10002c20
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0x14
lea ecx, [esp + 0x10]
push ecx
xor edi, edi
push eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1004d27b
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edi
push 0x200
push edx
push eax
call fcn.1009f830
or eax, edx
je 0x1004d2cc
mov eax, 0xe003300c
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0x14
cmp dword [esi + 0x28], 5
jne 0x1004d2e1
call fcn.1004d300
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0x14
mov eax, 0x80070057
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0x14
Function at 0x1004e730
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
mov eax, dword [0x100d1040]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test esi, esi
je 0x1004e84b
cmp word [esi], 0
je 0x1004e84b
mov eax, dword [edi + 0x4c]
cmp eax, 0xffffffff
je 0x1004e774
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x20000000
push 3
push 0
push 0
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi + 0x4c], eax
cmp eax, 0xffffffff
jne 0x1004e7b1
call fcn.10002c20
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.1005710f
mov esp, ebp
pop ebp
ret 8
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1004e795
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
push 0
push 0x200
push esi
push ebx
call fcn.1009f830
or eax, edx
je 0x1004e7f7
mov eax, 0xe00e1001
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.1005710f
mov esp, ebp
pop ebp
ret 8
push 0
push 0x200
push esi
push ebx
call fcn.1009f780
push 0x1ff
mov dword [esp + 0x18], edx
lea edx, [esp + 0x1d]
push 0
push edx
mov dword [esp + 0x1c], eax
mov dword [edi + 0x58], eax
mov byte [esp + 0x24], 0
call fcn.10059a00
add esp, 0xc
lea esi, [esp + 0x18]
mov eax, edi
call fcn.1004e870
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.1005710f
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 0x80070057
call fcn.1005710f
mov esp, ebp
pop ebp
ret 8
Function at 0x10050d60
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 0x14]
push edi
xor edi, edi
cmp esi, edi
je 0x10050e40
mov dword [esi], edi
cmp dword [esp + 0x14], edi
jne 0x10050dac
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
cmp eax, edi
je 0x10050e36
push str..wmt
push eax
call fcn.10058910
add esp, 8
test eax, eax
jne 0x10050e36
pop edi
mov dword [esi], 8
pop esi
ret 0x10
mov ecx, dword [esp + 0x10]
push edi
push edi
push 3
push edi
push 1
push closesocket
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x10050dd6
call fcn.10002c20
pop edi
pop esi
ret 0x10
push edi
lea edx, [esp + 0x18]
push edx
push 4
lea ecx, [esp + 0x24]
push ecx
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10050e0d
call fcn.10002c20
lea esi, [esp + 0x10]
mov edi, eax
call fcn.1000fcc0
mov eax, edi
pop edi
pop esi
ret 0x10
cmp dword [esp + 0x18], 0x5120372
jne 0x10050e2d
mov dword [esi], 8
lea esi, [esp + 0x10]
call fcn.1000fcc0
pop edi
xor eax, eax
pop esi
ret 0x10
lea esi, [esp + 0x10]
call fcn.1000fcc0
pop edi
mov eax, 0xe00e1001
pop esi
ret 0x10
pop edi
mov eax, 0x80070057
pop esi
ret 0x10

Function at 0x10051a80
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
or eax, 0xffffffff
push esi
movzx esi, byte [edx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x100d3aa8]
dec ecx
inc edx
test ecx, ecx
jne 0x10051a84
not eax
pop esi
ret

Function at 0x10051be0
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ecx
cmp dword [esi + 0x500], 0
push ebx
push edi
jne 0x10051c43
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 0
push 1
push 0
push 0
lea edi, [esi + 0x50c]
push edi
mov dword [esi + 0x510], 1
call ebx
test eax, eax
jne 0x10051c24
push 8
push 1
push eax
push eax
push edi
call ebx
test eax, eax
jne 0x10051c24
mov dword [esi + 0x510], eax
mov eax, esi
call fcn.10051df0
mov ecx, esi
call fcn.100520a0
mov eax, esi
call fcn.10051df0
mov dword [esi + 0x500], 1
pop edi
pop ebx
pop ecx
ret
Function at 0x10052340
Capabilities:
Encode data using xor
Hash data using sha512

Disassembly:
sub esp, 0x120
mov eax, dword [0x100d1040]
xor eax, esp
mov dword [esp + 0x11c], eax
mov eax, dword [esp + 0x124]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x14], eax
lea ebx, [eax + 1]
mov dword [esp + 0x10], 0xa
xor ebp, ebp
jmp 0x10052376
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov ecx, 0x10
mov esi, 0x100b13c0
lea edi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x18]
push ecx
push 0x280
mov ecx, eax
call fcn.10054e50
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0xf4]
push eax
call fcn.10054f50
add esp, 0x10
xor eax, eax
mov edi, edi
movzx ecx, byte [esp + eax + 0xe8]
movzx edx, byte [esp + eax + 0xe9]
xor byte [ebx + eax - 1], cl
xor byte [ebx + eax], dl
movzx ecx, byte [esp + eax + 0xea]
movzx edx, byte [esp + eax + 0xeb]
xor byte [ebx + eax + 1], cl
xor byte [ebx + eax + 2], dl
add eax, 4
cmp eax, 0x40
jl 0x100523c0
add ebx, 0x40
sub dword [esp + 0x10], 1
jne 0x10052372
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1005710f
add esp, 0x120
ret 4
Function at 0x100527a0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x110
mov eax, dword [0x100d1040]
xor eax, esp
mov dword [esp + 0x10c], eax
mov eax, dword [esp + 0x11c]
mov cl, byte [esp + 0x124]
push ebx
mov ebx, dword [esp + 0x124]
push ebp
mov ebp, dword [esp + 0x11c]
push esi
push edi
push 0x40
push eax
lea edx, [esp + 0xa0]
mov dword [esp + 0x1c], 0
push edx
mov byte [esp + 0x23], cl
call fcn.10059a80
mov edx, dword [esp + 0x134]
mov eax, dword [esp + 0x20]
add esp, 0xc
push 0x44
lea ecx, [esp + 0x9c]
push ecx
push edx
push ebp
lea ecx, [esp + 0x28]
mov dword [esp + 0xe8], eax
call fcn.10052420
mov ecx, 0x10
lea esi, [esp + 0x28]
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov esi, ebx
lea eax, [esp + 0x68]
add esp, 0x10
sub esi, eax
mov edi, 0x3e7
jmp 0x10052840
mov edx, dword [esp + 0x128]
push 0x40
lea ecx, [esp + 0x1c]
push ecx
push edx
push ebp
lea ecx, [esp + 0x68]
call fcn.10052420
add esp, 0x10
xor eax, eax
mov edi, edi
mov dl, byte [esp + eax + 0x58]
lea ecx, [esp + eax + 0x58]
xor byte [esi + ecx], dl
mov byte [esp + eax + 0x18], dl
inc eax
cmp eax, 0x40
jl 0x10052860
sub edi, 1
jne 0x10052840
lea edx, [esp + 0x18]
mov ecx, 0x40
mov esi, ecx
mov eax, edx
mov byte [eax], 0
inc eax
sub esi, 1
jne 0x10052887
dec ecx
mov byte [edx], 0
inc edx
test ecx, ecx
jne 0x10052890
lea edx, [esp + 0x58]
mov ecx, 0x40
mov esi, ecx
mov eax, edx
mov byte [eax], 0
inc eax
sub esi, 1
jne 0x100528a6
nop
dec ecx
mov byte [edx], 0
inc edx
test ecx, ecx
jne 0x100528b0
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1005710f
add esp, 0x110
ret
Function at 0x1005710f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100d1040]
jne 0x10057119
repz ret
jmp fcn.10059765

Function at 0x10064217
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.10059f6d
and dword [ebp - 4], 0
cmp dword [0x100d6b68], 0
mov ebx, eax
jne 0x100642c8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10064379
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x10064379
push eax
call fcn.10059efb
mov dword [esp], 0x100a33b8
push edi
mov dword [0x100d6b68], eax
call esi
push eax
call fcn.10059efb
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x100d6b6c], eax
call esi
push eax
call fcn.10059efb
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x100d6b70], eax
call esi
push eax
call fcn.10059efb
pop ecx
mov dword [0x100d6b78], eax
test eax, eax
je 0x100642c8
push 0x100a3370
push edi
call esi
push eax
call fcn.10059efb
pop ecx
mov dword [0x100d6b74], eax
mov eax, dword [0x100d6b74]
cmp eax, ebx
je 0x10064320
cmp dword [0x100d6b78], ebx
je 0x10064320
push eax
call fcn.10059f76
push dword [0x100d6b78]
mov esi, eax
call fcn.10059f76
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x10064320
test edi, edi
je 0x10064320
call esi
test eax, eax
je 0x10064317
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10064317
test byte [ebp - 0xc], 1
jne 0x10064320
or dword [ebp + 0x10], 0x200000
jmp 0x10064359
mov eax, dword [0x100d6b6c]
cmp eax, ebx
je 0x10064359
push eax
call fcn.10059f76
pop ecx
test eax, eax
je 0x10064359
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x10064359
mov eax, dword [0x100d6b70]
cmp eax, ebx
je 0x10064359
push eax
call fcn.10059f76
pop ecx
test eax, eax
je 0x10064359
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x100d6b68]
call fcn.10059f76
pop ecx
test eax, eax
je 0x10064379
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1006437b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret