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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x456ba8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x42cc60
cmp byte [ebx], 0xa
jne 0x42cc60
or byte [edi + eax + 0x28], 4
jmp 0x42cc65
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x42cd64
mov dl, byte [eax]
cmp dl, 0x1a
je 0x42cd47
inc eax
cmp dl, 0xd
je 0x42cc91
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x42ccb7
cmp eax, ecx
jae 0x42ccc5
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x42cc79
jmp 0x42cd64
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42cd42
cmp dword [ebp - 0x10], 0
je 0x42cd42
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x456ba8]
test byte [eax + edi + 0x28], 0x48
je 0x42cd1c
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x42cd07
mov byte [esi], dl
jmp 0x42cd18
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x456ba8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x42cd64
cmp byte [ebp - 1], 0xa
jne 0x42cd2b
cmp esi, ebx
jne 0x42cd2b
mov byte [esi], 0xa
jmp 0x42cd63
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00436fc8
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x42cd64
mov byte [esi], 0xd
jmp 0x42cd63
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x456ba8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x42cd61
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x42cd64
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42cd6d
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 + 0x456ba8]
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 0x42cdb3
cmp word [ebx], dx
jne 0x42cdb3
or byte [eax + edi + 0x28], 4
jmp 0x42cdb8
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 0x42cf1b
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 0x42cefb
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x42cdf9
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x42ce2f
cmp eax, edx
jae 0x42ce3d
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 0x42cdd4
jmp 0x42cf1b
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 0x42cef6
cmp dword [ebp - 0x18], 0
je 0x42cef6
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x456ba8]
test byte [eax + edi + 0x28], 0x48
je 0x42cecc
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 0x42ce90
mov word [esi], cx
jmp 0x42cec7
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x456ba8]
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 + 0x456ba8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x456ba8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x42cf1b
pop eax
cmp word [ebp - 4], ax
jne 0x42cedc
cmp esi, ebx
jne 0x42cedc
mov word [esi], ax
jmp 0x42cf18
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00436fc8
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x42cf1b
push 0xd
pop eax
jmp 0x42ced7
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x456ba8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x42cf15
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x42cf1b
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 0x4311e3
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 0x431280
push ebx
push esi
call fcn.004311ac
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.0042f752
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x43122d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x43127f
push edi
push eax
call fcn.00429da5
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x43124d
call fcn.00429d6b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x43127e
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0042f752
add esp, 0x20
test eax, eax
jne 0x43126c
push edi
call fcn.00429d6b
jmp 0x431274
push ebx
call fcn.00429d6b
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 0x431283
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x431294
pop esi
ret
push ebx
push edi
push esi
call fcn.004311ac
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00429da5
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4312bc
push ebx
push esi
push edi
call fcn.00419240
add esp, 0xc
push 0
call fcn.00429d6b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x43168c
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004312d1

Function at 0x433877
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00429a80
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 0x4338e6
cmp esi, dword [ebp - 4]
je 0x4338e1
cmp dword [ebp + 0xc], 0
je 0x4338e1
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4338be
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004333c9
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4338e8
xor eax, eax
inc eax
jmp 0x4338e8
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x43394d
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x451040]
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.00429a80
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.00429a80
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 0x4339c4
cmp word [ecx], dx
je 0x4339c4
mov eax, dword [0x441954]
push edi
dec eax
push eax
push 0x441840
call fcn.004338ec
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x433a37
cmp word [eax], dx
je 0x433a37
mov eax, dword [edi]
test eax, eax
je 0x4339e8
cmp word [eax], dx
je 0x4339e8
lea eax, [ebp - 0x10]
push eax
call fcn.004332cf
jmp 0x4339f1
lea eax, [ebp - 0x10]
push eax
call fcn.0043336a
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x433a61
mov eax, dword [0x44183c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x441530
call fcn.004338ec
add esp, 0xc
test al, al
je 0x433a61
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x433a2c
cmp word [eax], di
je 0x433a2c
lea eax, [ebp - 0x10]
push eax
call fcn.004332cf
pop ecx
jmp 0x433a63
lea eax, [ebp - 0x10]
push eax
call fcn.0043336a
jmp 0x433a29
mov eax, dword [edi]
test eax, eax
je 0x433a4e
cmp word [eax], dx
je 0x433a4e
lea eax, [ebp - 0x10]
push eax
call fcn.00433284
pop ecx
jmp 0x433a61
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 0x433b2c
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00433771
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x433b2c
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x433b2c
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x433b2c
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x433ab9
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0042b824
test ebx, ebx
je 0x433b27
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0042b824
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x433b2c
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 0x433b2c
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00438891
add esp, 0x10
xor eax, eax
inc eax
jmp 0x433b2e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00417ad4
leave
ret
Function at 0x436334
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x451040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x436377
call fcn.00423c8b
mov dword [eax], 0xf
call fcn.00423c9e
mov dword [eax], 0xd
call fcn.0041c8df
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417ad4
leave
ret
test eax, eax
jne 0x43637e
inc eax
jmp 0x43636b
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x436369
xor eax, eax
cmp ecx, 1
setne al
jmp 0x43636b
Function at 0x438ec5
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.00438e41
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x439034
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x439034
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x438fe9
jg 0x438f21
test eax, eax
je 0x438fdf
push 1
push 0x1000
call fcn.0042b150
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x438f44
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x438fd6
push 0x8000
push ebx
call fcn.00427d57
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x438f6d
jg 0x438f68
cmp ecx, 0x1000
jb 0x438f6d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00437a8b
add esp, 0x10
cmp eax, 0xffffffff
je 0x438fb2
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 0x438f68
jl 0x438f99
test ecx, ecx
jne 0x438f5a
push dword [ebp - 0xc]
push ebx
call fcn.00427d57
push esi
call fcn.00429d6b
add esp, 0xc
xor ebx, ebx
jmp 0x439042
cmp byte [edi + 0x24], 0
je 0x438fc9
cmp dword [edi + 0x20], 5
jne 0x438fc9
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x438fd4
mov ebx, dword [edi + 0x18]
jmp 0x438fd6
xor ebx, ebx
push esi
call fcn.00429d6b
pop ecx
jmp 0x439042
test ecx, ecx
jg 0x438fab
jl 0x438fe9
test eax, eax
jae 0x438fab
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00436fc8
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x439009
cmp byte [edi + 0x1c], 0
je 0x438fab
jmp 0x43903a
push ebx
call fcn.0042c3e9
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x438fab
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 0x439042
cmp byte [edi + 0x1c], 0
je 0x43903f
mov ebx, dword [edi + 0x18]
jmp 0x439042
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00436fc8
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x43a260
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43a28d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43a28d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x401000
Capabilities:
Copy file
Extract resource via kernel32 functions
Get common file path
Get file size
Move file
Read file on windows
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x338
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x337]
mov byte [ebp - 0x338], bl
push 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x233]
mov byte [ebp - 0x234], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0x12f]
mov byte [ebp - 0x130], bl
mov dword [ebp - 0x14], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0x1c], 0xa
mov byte [ebp - 0x1b], 0xa
mov byte [ebp - 0x1a], 0xa
mov byte [ebp - 0x19], 0xa
mov byte [ebp - 0x18], 0xa
mov byte [ebp - 0x17], 0xa
mov byte [ebp - 0x16], 0xa
mov byte [ebp - 0x15], 0xa
mov dword [ebp - 8], ebx
stosb byte es:[edi], al
jmp loc.00409000

Function at 0x401450
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
push dword [esp + 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x40147a
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x14]
test eax, eax
mov dword [ecx], eax
jne 0x40147e
xor eax, eax
pop esi
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x10]
push 1
mov dword [ecx], eax
pop eax
pop esi
ret

Function at 0x401499
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push edi
xor edi, edi
push edi
push 1
push edi
lea eax, [ebp - 4]
push edi
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call esi
test eax, eax
jne 0x4014da
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x4014ed
push 8
push 1
push edi
lea eax, [ebp - 4]
push edi
push eax
call esi
test eax, eax
je 0x4014ed
lea eax, [ebp - 8]
push eax
push 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x4014f1
xor eax, eax
jmp 0x401503
cmp dword [ebp - 4], edi
je 0x401500
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret
Function at 0x411b2d
Capabilities:
Get common file path
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041186a

Function at 0x42a402
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042a189

Function at 0x42c696
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042be70

Function at 0x42c6a1
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042c0ab

Function at 0x408f60
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x407015
lea edi, [esi - 0x6015]
push edi
jmp 0x408f7a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x408f81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x408f70
mov eax, 1
add ebx, ebx
jne 0x408f93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x408f88
jne 0x408fa4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x408f88
xor ecx, ecx
sub eax, 3
jb 0x408fb8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40902a
mov ebp, eax
add ebx, ebx
jne 0x408fc3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x408fd0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x408ff4
inc ecx
add ebx, ebx
jne 0x408fe0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x408fd5
jne 0x408ff1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x408fd5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x409014
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x409005
jmp 0x408f76
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x409014
add edi, ecx
jmp 0x408f76
pop esi
mov edi, esi
mov ecx, 0xe00
jmp 0x409065
mov al, byte [edi]
inc edi
cmp al, 0x80
jb 0x409045
cmp al, 0x8f
ja 0x409045
cmp byte [edi - 2], 0xf
je 0x40904b
sub al, 0xe8
cmp al, 1
ja 0x40906f
cmp ecx, 4
jb 0x409074
mov eax, dword [edi]
sub al, 8
jne 0x40906f
xchg ah, al
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
sub ecx, 4
stosd dword es:[edi], eax
sub ecx, 1
jb 0x409074
mov al, byte [edi]
inc edi
jmp 0x409045
sub ecx, 1
jae 0x409034
lea edi, [esi + 0x6000]
mov eax, dword [edi]
or eax, eax
je 0x4090bc
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xa4f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xa5a0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40907a
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xa5a8]
or eax, eax
je 0x4090b6
mov dword [ebx], eax
add ebx, 4
jmp 0x409097
call dword [esi + 0xa5a4]
mov ebp, dword [esi + 0xa5ac]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4090f0
sub esp, 0xffffff80
jmp 0x40106f
Function at 0x404e00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4adf7d
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0xc18374]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [esp + 0x40]
mov eax, dword [eax]
push 0xffffffffffffffff
push eax
call dword [sym.imp.QtCore4.dll_private:_static_struct_QString::Data____cdecl_QString::fromAscii_helper_char_const___int_]
add esp, 8
mov dword [esp + 0x40], eax
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x3c], 0
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QFileInfo::constructor_class_QString_const__]
lea edx, [esp + 0xc]
push edx
mov ecx, eax
mov byte [esp + 0x3c], 1
call dword [sym.imp.QtCore4.dll_public:_class_QDir___thiscall_QFileInfo::absoluteDir_void_]
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 3
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QFileInfo::destructor_void_]
mov eax, dword [esp + 0x40]
mov byte [esp + 0x38], 4
or ecx, 0xffffffff
lock xadd dword [eax], ecx
mov esi, dword [sym.imp.QtCore4.dll_private:_static_void___cdecl_QString::free_struct_QString::Data__]
jne 0x404e94
mov edx, dword [esp + 0x40]
push edx
call esi
add esp, 4
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x10]
call dword [sym.imp.QtCore4.dll_public:_class_QString___thiscall_QDir::absolutePath_void_]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0xc]
mov byte [esp + 0x3c], 5
call dword [sym.imp.QtCore4.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_QString::toStdString_void_]
push eax
mov byte [esp + 0x3c], 6
call fcn.004658f0
add esp, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 5
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov edx, dword [esp + 8]
mov byte [esp + 0x38], 4
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x404ef0
mov ecx, dword [esp + 8]
push ecx
call esi
add esp, 4
lea ecx, [esp + 0xc]
mov dword [esp + 0x38], 0xffffffff
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QDir::destructor_void_]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x34
ret