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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x10029900]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10012e25
cmp word [ebx], dx
jne 0x10012e25
or byte [eax + edi + 0x28], 4
jmp 0x10012e2a
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x10012f8d
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x10012f6d
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x10012e6b
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10012ea1
cmp eax, edx
jae 0x10012eaf
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x10012e46
jmp 0x10012f8d
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10012f68
cmp dword [ebp - 0x18], 0
je 0x10012f68
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10029900]
test byte [eax + edi + 0x28], 0x48
je 0x10012f3e
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x10012f02
mov word [esi], cx
jmp 0x10012f39
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10029900]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x10029900]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10029900]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x10012f8d
pop eax
cmp word [ebp - 4], ax
jne 0x10012f4e
cmp esi, ebx
jne 0x10012f4e
mov word [esi], ax
jmp 0x10012f8a
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.100124d5
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x10012f8d
push 0xd
pop eax
jmp 0x10012f49
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10029900]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x10012f87
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x10012f8d
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100139ef
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10021388
push 0x10021380
push str.FlsAlloc
push 0x1f
call fcn.100138b7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10013a23
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001e148]
call esi
jmp 0x10013a29
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10013a6d
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10021398
push 0x10021390
push str.FlsGetValue
push 0x21
call fcn.100138b7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10013aa4
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001e148]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10013aac
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100213a0
push 0x10021398
push str.FlsSetValue
push 0x22
call fcn.100138b7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10013ae6
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1001e148]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x100175fd
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 0x1001769a
push ebx
push esi
call fcn.100175c6
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.1001639b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10017647
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10017699
push edi
push eax
call fcn.1001415a
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10017667
call fcn.1000f252
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10017698
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001639b
add esp, 0x20
test eax, eax
jne 0x10017686
push edi
call fcn.1000f252
jmp 0x1001768e
push ebx
call fcn.1000f252
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 0x10019917
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1000f5f6
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10019986
cmp esi, dword [ebp - 4]
je 0x10019981
cmp dword [ebp + 0xc], 0
je 0x10019981
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1001995e
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.10019469
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x10019988
xor eax, eax
inc eax
jmp 0x10019988
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x100199ed
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10028080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.1000f5f6
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.1000f5f6
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x10019a64
cmp word [ecx], dx
je 0x10019a64
mov eax, dword [0x10021a04]
push edi
dec eax
push eax
push 0x100218f0
call fcn.1001998c
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x10019ad7
cmp word [eax], dx
je 0x10019ad7
mov eax, dword [edi]
test eax, eax
je 0x10019a88
cmp word [eax], dx
je 0x10019a88
lea eax, [ebp - 0x10]
push eax
call fcn.1001936f
jmp 0x10019a91
lea eax, [ebp - 0x10]
push eax
call fcn.1001940a
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x10019b01
mov eax, dword [0x100218ec]
push dword [ebp - 0x14]
dec eax
push eax
push 0x100215e0
call fcn.1001998c
add esp, 0xc
test al, al
je 0x10019b01
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x10019acc
cmp word [eax], di
je 0x10019acc
lea eax, [ebp - 0x10]
push eax
call fcn.1001936f
pop ecx
jmp 0x10019b03
lea eax, [ebp - 0x10]
push eax
call fcn.1001940a
jmp 0x10019ac9
mov eax, dword [edi]
test eax, eax
je 0x10019aee
cmp word [eax], dx
je 0x10019aee
lea eax, [ebp - 0x10]
push eax
call fcn.10019324
pop ecx
jmp 0x10019b01
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x10019bcc
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10019811
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10019bcc
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x10019bcc
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x10019bcc
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10019b59
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.10013bec
test ebx, ebx
je 0x10019bc7
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.10013bec
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10019bcc
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10019bcc
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.1001bc34
add esp, 0x10
xor eax, eax
inc eax
jmp 0x10019bce
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000661f
leave
ret
Function at 0x1001c161
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]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1001c0dd
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1001c2d0
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1001c2d0
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1001c285
jg 0x1001c1bd
test eax, eax
je 0x1001c27b
push 1
push 0x1000
call fcn.10012232
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1001c1e0
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1001c272
push 0x8000
push ebx
call fcn.1001c00e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1001c209
jg 0x1001c204
cmp ecx, 0x1000
jb 0x1001c209
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10012016
add esp, 0x10
cmp eax, 0xffffffff
je 0x1001c24e
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 0x1001c204
jl 0x1001c235
test ecx, ecx
jne 0x1001c1f6
push dword [ebp - 0xc]
push ebx
call fcn.1001c00e
push esi
call fcn.1000f252
add esp, 0xc
xor ebx, ebx
jmp 0x1001c2de
cmp byte [edi + 0x24], 0
je 0x1001c265
cmp dword [edi + 0x20], 5
jne 0x1001c265
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1001c270
mov ebx, dword [edi + 0x18]
jmp 0x1001c272
xor ebx, ebx
push esi
call fcn.1000f252
pop ecx
jmp 0x1001c2de
test ecx, ecx
jg 0x1001c247
jl 0x1001c285
test eax, eax
jae 0x1001c247
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100124d5
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1001c2a5
cmp byte [edi + 0x1c], 0
je 0x1001c247
jmp 0x1001c2d6
push ebx
call fcn.10019fa7
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1001c247
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1001c2de
cmp byte [edi + 0x1c], 0
je 0x1001c2db
mov ebx, dword [edi + 0x18]
jmp 0x1001c2de
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.100124d5
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1001d5e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001d60d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001d60d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x402b50
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x402b83
call fcn.00402b30
test eax, eax
je 0x402b83
mov edx, 1
lea ecx, [ebp - 0x10]
call fcn.00402b10
mov eax, dword [ebp - 8]
shr eax, 0x19
and eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
shr eax, 0x19
and eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x402bf0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x402c24
call fcn.00402b30
cmp eax, 7
jb 0x402c24
mov edx, 7
lea ecx, [ebp - 0x10]
call fcn.00402b10
mov eax, dword [ebp - 0xc]
shr eax, 0x1d
and eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x402c30
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x402c63
call fcn.00402b30
test eax, eax
je 0x402c63
mov edx, 1
lea ecx, [ebp - 0x10]
call fcn.00402b10
mov eax, dword [ebp - 8]
shr eax, 9
and eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
shr eax, 9
and eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x402d60
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0xaf908c]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x402da9
push str.SetDefaultDllDirectories
push 0xaba6d0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402da9
push 0xc00
call eax
test eax, eax
jne 0x402e3e
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, eax
test ecx, ecx
je 0x402e3e
cmp ecx, 0x104
ja 0x402e3e
cmp word [ebp + ecx*2 - 0x2d6], 0x5c
je 0x402de2
mov eax, 0x5c
mov word [ebp + ecx*2 - 0x2d4], ax
inc ecx
mov al, byte [str.userenv]
push esi
mov esi, str.userenv
test al, al
je 0x402e3d
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push edi
lea edi, [ebp - 0x2d4]
lea edi, [edi + ecx*2]
mov ecx, edi
inc esi
movzx eax, al
lea ecx, [ecx + 2]
mov word [ecx - 2], ax
mov al, byte [esi]
inc esi
test al, al
jne 0x402e05
xor eax, eax
mov dword [ecx], 0x64002e
push 8
push eax
mov word [ecx + 8], ax
lea eax, [ebp - 0x2d4]
push eax
mov dword [ecx + 4], 0x6c006c
call ebx
mov al, byte [esi]
test al, al
jne 0x402e02
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00a405be
mov esp, ebp
pop ebp
ret
Function at 0x408320
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x98
push 0
lea eax, [edi + 0x110]
push eax
call fcn.00a921e0
mov eax, dword [edi + 0x30]
add esp, 0xc
add eax, dword [edi + 0x34]
mov ecx, dword [edi + 0x28]
mov dword [edi + 0x40], eax
mov dword [edi + 0x2c], 0
mov dword [edi + 0x14], 0
lea esi, [eax + ecx]
shr ecx, 3
mov eax, 0xaaaaaaab
mul ecx
mov ecx, 0xc
shr edx, 3
imul eax, edx, 0x54
mov edx, esi
sub edx, eax
mov eax, dword [edi + 0x18]
cmp eax, ecx
mov dword [edi + 0xc], eax
mov dword [edi + 0x44], edx
cmovb ecx, eax
mov dword [edi + 8], edx
not ecx
lea eax, [edx + 0x600]
mov dword [edi + 0x24], ecx
mov dword [edi + 0x20], ecx
lea ecx, [esi - 0xc]
mov dword [edi + 0x38], eax
xor eax, eax
mov dword [edi + 0x3c], ecx
mov dword [edi], ecx
mov dword [edi + 4], ecx
mov dword [ecx + 4], edx
add edx, 2
mov dword [ecx], 0x1010100
mov dword [ecx + 8], 0
mov byte [edx - 2], al
lea edx, [edx + 6]
xor ecx, ecx
mov byte [edx - 7], 1
inc eax
mov dword [edx - 6], ecx
cmp eax, 0x100
jb 0x4083b7
lea eax, [edi + 0x9fc]
push ebx
xor ebx, ebx
mov dword [ebp - 4], eax
nop word [eax + eax]
mov esi, eax
xor edi, edi
movzx eax, word [edi + 0xaba700]
lea ecx, [ebx + 2]
xor edx, edx
div ecx
mov ecx, 0x4000
sub ecx, eax
xor eax, eax
movzx ecx, cx
nop
mov word [esi + eax*2], cx
add eax, 8
cmp eax, 0x40
jb 0x408400
add edi, 2
add esi, 2
cmp edi, 0x10
jb 0x4083e4
mov eax, dword [ebp - 4]
inc ebx
sub eax, 0xffffff80
mov dword [ebp - 4], eax
cmp ebx, 0x80
jb 0x4083e0
mov edi, dword [ebp + 8]
mov edx, 0x50
pop ebx
lea esi, [edi + 0x3bc]
nop dword [eax + eax]
mov eax, esi
mov ecx, 0x10
nop word [eax + eax]
mov word [eax], dx
lea eax, [eax + 4]
mov word [eax - 2], 0x403
sub ecx, 1
jne 0x408450
add edx, 0x28
add esi, 0x40
cmp edx, 0x438
jb 0x408440
mov dword [edi + 0x3b8], 0x40070000
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x409420
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edx, dword [esi + 8]
and edx, 0x3f
mov byte [edx + esi + 0x40], 0x80
inc edx
cmp edx, 0x38
jbe 0x40946b
cmp edx, 0x40
je 0x409457
mov eax, 0x40
lea ecx, [esi + 0x40]
sub eax, edx
add ecx, edx
push eax
push 0
push ecx
call fcn.00a921e0
add esp, 0xc
mov eax, dword [esi]
lea edi, [esi + 0x40]
lea ebx, [esi + 0x20]
mov edx, edi
push 1
mov ecx, ebx
call eax
xor edx, edx
jmp 0x409471
lea edi, [esi + 0x40]
lea ebx, [esi + 0x20]
mov eax, 0x38
sub eax, edx
push eax
lea eax, [esi + 0x40]
add eax, edx
push 0
push eax
call fcn.00a921e0
mov ecx, dword [esi + 8]
add esp, 0xc
mov eax, dword [esi + 0xc]
mov edx, edi
shld eax, ecx, 3
shl ecx, 3
bswap eax
bswap ecx
mov dword [esi + 0x78], eax
mov eax, dword [esi]
mov dword [esi + 0x7c], ecx
mov ecx, ebx
push 1
call eax
mov edi, dword [ebp + 0xc]
mov edx, ebx
mov ebx, 4
mov ecx, dword [edx + 4]
lea edi, [edi + 8]
mov eax, dword [edx]
lea edx, [edx + 8]
bswap eax
mov dword [edi - 8], eax
bswap ecx
mov dword [edi - 4], ecx
sub ebx, 1
jne 0x4094b4
pop edi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x20], 0x6a09e667
mov dword [esi + 0x24], 0xbb67ae85
mov dword [esi + 0x28], 0x3c6ef372
mov dword [esi + 0x2c], 0xa54ff53a
mov dword [esi + 0x30], 0x510e527f
mov dword [esi + 0x34], 0x9b05688c
mov dword [esi + 0x38], 0x1f83d9ab
mov dword [esi + 0x3c], 0x5be0cd19
pop esi
pop ebx
pop ebp
ret 8

Function at 0x409520
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [section..data]
mov dword [ecx], eax
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x20], 0x6a09e667
mov dword [ecx + 0x24], 0xbb67ae85
mov dword [ecx + 0x28], 0x3c6ef372
mov dword [ecx + 0x2c], 0xa54ff53a
mov dword [ecx + 0x30], 0x510e527f
mov dword [ecx + 0x34], 0x9b05688c
mov dword [ecx + 0x38], 0x1f83d9ab
mov dword [ecx + 0x3c], 0x5be0cd19
pop ebp
ret 4

Function at 0x409cd0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push 0
call fcn.00a95953
mov ecx, dword [ebp + 8]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
je 0x409cfd
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 1
cmovne ecx, eax
mov eax, ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40c940
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ebx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
setne byte [ebp + 0xb]
test eax, eax
je 0x40ca00
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x40ca00
mov ecx, dword [ebp + 0xc]
push edi
mov dword [ebp + 0xc], 0
mov eax, dword [ecx + 4]
mov ebx, dword [ecx]
lea ecx, [ebp + 0xc]
lea edi, [eax*2 + 2]
push edi
push 0x2002
call fcn.0040fc80
test al, al
jne 0x40c99f
lea ecx, [ebp + 0xc]
xor bl, bl
call fcn.0040fcb0
pop edi
jmp 0x40ca02
push esi
mov esi, dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
jne 0x40c9bc
pop esi
lea ecx, [ebp + 0xc]
xor bl, bl
call fcn.0040fcb0
pop edi
jmp 0x40ca02
push edi
push ebx
push eax
call fcn.00a91c60
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp + 0xc]
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x40c9eb
pop esi
lea ecx, [ebp + 0xc]
xor bl, bl
call fcn.0040fcb0
pop edi
jmp 0x40ca02
pop esi
lea ecx, [ebp + 0xc]
mov dword [ebp + 0xc], 0
mov bl, 1
call fcn.0040fcb0
pop edi
jmp 0x40ca02
xor bl, bl
cmp byte [ebp + 0xb], 0
je 0x40ca0e
call dword [sym.imp.USER32.dll_CloseClipboard]
mov al, bl
pop ebx
pop ebp
ret 8
Function at 0x40d5f0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xab51cd
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0xaf908c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push esi
call fcn.0040e730
cmp eax, 0xffffffff
je 0x40d640
test al, 0x10
je 0x40d640
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push esi
call fcn.0040f940
test al, al
je 0x40d660
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push esi
call fcn.0040f5b0
push esi
lea ecx, [ebp - 0x18]
mov dword [ebp + 8], eax
call fcn.0040a790
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
call fcn.0040b580
test eax, eax
js 0x40d6a7
mov edx, dword [ebp - 0x14]
lea ecx, [edx - 1]
cmp eax, ecx
jne 0x40d6a7
cmp edx, 1
jne 0x40d69b
mov bl, dl
jmp 0x40d7e4
mov eax, dword [ebp - 0x18]
xor edx, edx
mov dword [ebp - 0x14], ecx
mov word [eax + ecx*2], dx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x24]
call fcn.0040a610
mov esi, dword [ebp - 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [ebp - 4], 1
mov edi, dword [ebp - 0x18]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40d78f
call ebx
cmp eax, 0xb7
jne 0x40d72a
lea ecx, [ebp - 0x5c]
call fcn.0040dc50
lea ecx, [ebp - 0x34]
call fcn.0040a7f0
push 0
push edi
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 2
call fcn.0040e040
mov byte [ebp - 4], 1
push dword [ebp - 0x34]
test al, al
jne 0x40d711
call fcn.00a407cc
add esp, 4
jmp 0x40d72a
mov ebx, dword [ebp - 0x3c]
shr ebx, 4
call fcn.00a407cc
add esp, 4
and bl, 1
jne 0x40d78f
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0xb7
je 0x40d805
lea ecx, [ebp - 0x18]
call fcn.0040b580
mov esi, eax
test esi, esi
js 0x40d805
je 0x40d805
mov edi, dword [ebp - 0x18]
cmp esi, 1
jne 0x40d76c
movzx eax, word [edi]
cmp eax, 0x5c
je 0x40d805
cmp eax, 0x2f
je 0x40d805
lea eax, [esi + 1]
cmp dword [ebp + 8], eax
jae 0x40d805
cmp esi, dword [ebp - 0x14]
jae 0x40d6c3
xor eax, eax
mov dword [ebp - 0x14], esi
mov word [edi + esi*2], ax
jmp 0x40d6c0
cmp esi, dword [ebp - 0x20]
jge 0x40d7d7
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop word [eax + eax]
mov eax, dword [ebp - 0x24]
lea eax, [eax + esi*2]
add eax, 2
push eax
call fcn.0040f270
test eax, eax
jns 0x40d7b8
mov esi, dword [ebp - 0x20]
jmp 0x40d7bb
inc esi
add esi, eax
push esi
push dword [ebp - 0x24]
lea ecx, [ebp - 0x18]
call fcn.0040b5b0
push 0
push dword [ebp - 0x18]
call edi
test eax, eax
je 0x40d805
cmp esi, dword [ebp - 0x20]
jl 0x40d7a0
mov bl, 1
push dword [ebp - 0x24]
call fcn.00a407cc
add esp, 4
push dword [ebp - 0x18]
call fcn.00a407cc
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor bl, bl
jmp 0x40d7d9