joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4defd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
jne 0x4defea
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 4], 0xffffffff
je 0x4deff4
mov eax, 0x1000000
jmp 0x4df0de
mov edx, dword [ebp - 0xc]
add edx, 0x244
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, dword [ebp - 0xc]
add eax, 0x244
push eax
call fcn.00524c40
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dx, word [ecx + eax*2 + 0x242]
mov word [ebp - 8], dx
movzx eax, word [ebp - 8]
cmp eax, 0x5c
je 0x4df052
movzx ecx, word [ebp - 8]
cmp ecx, 0x2f
je 0x4df052
push 0x55e000
mov edx, dword [ebp - 0xc]
add edx, 0x244
push edx
call fcn.005322ba
add esp, 8
cmp dword [ebp + 0x10], 1
jne 0x4df096
push 1
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
je 0x4df07a
mov dword [ebp - 0x10], 1
jmp 0x4df081
mov dword [ebp - 0x10], 0
mov cl, byte [ebp - 0x10]
mov byte [ebp - 1], cl
movzx edx, byte [ebp - 1]
test edx, edx
jne 0x4df096
mov eax, 0x2000000
jmp 0x4df0de
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004e43d0
add esp, 0x10
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4df0bc
mov eax, dword [ebp - 0x1c]
jmp 0x4df0de
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.004e5100
add esp, 4
mov edx, dword [ebp - 0xc]
mov dword [edx], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
jne 0x4df0dc
mov eax, 0x200
jmp 0x4df0de
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4dfa30
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, 4
imul ecx, eax, 0
movsx edx, byte [ebp + 0xc]
mov eax, dword [ebp + 8]
xor edx, dword [eax + ecx]
and edx, 0xff
mov ecx, 4
imul eax, ecx, 0
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + eax]
shr eax, 8
xor eax, dword [edx*4 + 0x57c710]
mov ecx, 4
imul edx, ecx, 0
mov ecx, dword [ebp + 8]
mov dword [ecx + edx], eax
mov edx, 4
imul eax, edx, 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + eax]
and edx, 0xff
mov eax, 4
shl eax, 0
mov ecx, dword [ebp + 8]
add edx, dword [ecx + eax]
mov eax, 4
shl eax, 0
mov ecx, dword [ebp + 8]
mov dword [ecx + eax], edx
mov edx, 4
shl edx, 0
mov eax, dword [ebp + 8]
imul ecx, dword [eax + edx], 0x8088405
add ecx, 1
mov edx, 4
shl edx, 0
mov eax, dword [ebp + 8]
mov dword [eax + edx], ecx
mov ecx, 4
shl ecx, 1
mov edx, 4
shl edx, 0
mov eax, dword [ebp + 8]
mov edx, dword [eax + edx]
shr edx, 0x18
mov eax, dword [ebp + 8]
xor edx, dword [eax + ecx]
and edx, 0xff
mov ecx, 4
shl ecx, 1
mov eax, dword [ebp + 8]
mov ecx, dword [eax + ecx]
shr ecx, 8
xor ecx, dword [edx*4 + 0x57c710]
mov edx, 4
shl edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + edx], ecx
pop ebp
ret

Function at 0x4e4560
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x14]
movzx edx, byte [ecx]
test edx, edx
je 0x4e45af
push 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4e45a5
mov edx, dword [ebp + 0x14]
mov byte [edx + 8], 1
mov eax, dword [ebp - 0x10]
xor edx, edx
div dword [ebp + 0xc]
jmp 0x4e4609
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x1c]
add ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x14]
cmp ecx, dword [edx + 0x18]
jbe 0x4e45cf
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x14]
mov edx, dword [eax + 0x18]
sub edx, dword [ecx + 0x1c]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x14]
mov eax, dword [ebp + 0x14]
add edx, dword [eax + 0x1c]
push edx
mov ecx, dword [ebp + 8]
push ecx
call fcn.0051fd00
add esp, 0xc
mov edx, dword [ebp - 4]
mov dword [ebp - 8], edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x1c]
add ecx, dword [ebp - 8]
mov edx, dword [ebp + 0x14]
mov dword [edx + 0x1c], ecx
mov eax, dword [ebp - 8]
xor edx, edx
div dword [ebp + 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x53f9f4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0053f873

Function at 0x54450a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005441ca

Function at 0x50bf1b
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.0050bf9a
jae 0x50bf27
xor ecx, ecx
call fcn.0050bf9a
jae 0x50bf51
xor eax, eax
call fcn.0050bf9a
jae 0x50bf62
mov al, 0x10
call fcn.0050bf9a
adc al, al
jae 0x50bf43
jne 0x50bf8f
stosb byte es:[edi], al
jmp 0x50bf28
call fcn.0050bfa6
dec ecx
loop 0x50bf6e
mov eax, ebp
call fcn.0050bfa4
jmp 0x50bf90
lodsb al, byte [esi]
shr eax, 1
je 0x50bfb6
adc ecx, 2
mov ebp, eax
jmp 0x50bf90
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.0050bfa4
cmp eax, 0x7d00
jae 0x50bf8e
cmp eax, 0x500
jae 0x50bf8f
cmp eax, 0x7f
ja 0x50bf90
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x50bf28
pop ebp
ret 8
Function at 0x402426
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2bc
mov eax, dword [0x407004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xa0
xor ebx, ebx
lea eax, [ebp - 0xa8]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x2bc], ebx
lea eax, [ebp - 0x2bc]
push ebx
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push 0x401128
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
call fcn.004025ac
push dword [0x407cf8]
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x4024c1
lea eax, [ebp - 0x2b8]
push eax
push dword [0x407cf8]
call dword [sym.imp.USER32.dll_GetWindowRect]
push 8
lea eax, [ebp - 0x2b8]
push eax
push 3
push ebx
push 0x401258
push dword [ebp - 0x2bc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push ebx
push ebx
push 0x146
push 0xc9
push dword [0x407cf8]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
xor esi, esi
movzx edi, ax
inc esi
cmp esi, edi
ja 0x402506
lea eax, [ebp - 0xa8]
push eax
lea eax, [esi - 1]
push eax
push 0x148
push 0xc9
push dword [0x407cf8]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
jmp 0x40250f
xor eax, eax
mov word [ebp - 0xa8], ax
push esi
push 0x401238
lea eax, [ebp - 0x2a8]
push 0x200
push eax
call fcn.00401930
add esp, 0x10
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0xa8]
push eax
push 1
push ebx
lea eax, [ebp - 0x2a8]
push eax
push dword [ebp - 0x2bc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
inc esi
cmp esi, 0x14
jbe 0x4024df
push dword [ebp - 0x2bc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push 2
push str.DIALER.HLP
push dword [0x407cf8]
call dword [sym.imp.USER32.dll_WinHelpW]
push dword [0x407cf8]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov dword [0x407cf8], ebx
xor ecx, ebp
pop ebx
call fcn.00405b90
leave
ret
Function at 0x4058f0
Capabilities:
Terminate process

Disassembly:
call fcn.00406059
jmp 0x405900
push 0x58
push 0x4061e0
call fcn.0040611c
xor ebx, ebx
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x407ce8
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x405952
cmp eax, esi
jne 0x405945
xor esi, esi
inc esi
mov edi, esi
jmp 0x405955
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x405929
xor esi, esi
inc esi
cmp dword [0x407cec], esi
jne 0x405967
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x4059a1
cmp dword [0x407cec], ebx
jne 0x40599b
mov dword [0x407cec], esi
push 0x4010e0
push 0x4010d4
call fcn.00405ae5
pop ecx
pop ecx
test eax, eax
je 0x4059a1
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x405acf
mov dword [0x407064], esi
cmp dword [0x407cec], esi
jne 0x4059c4
push 0x4010d0
push 0x4010c8
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x407cec], 2
test edi, edi
jne 0x4059d1
xor eax, eax
mov ecx, 0x407ce8
xchg dword [ecx], eax
cmp dword [0x407cf0], 0
je 0x4059fd
push 0x407cf0
call fcn.00405f50
pop ecx
test eax, eax
je 0x4059fd
push ebx
push 2
push ebx
mov esi, dword [0x407cf0]
mov ecx, esi
call dword [0x40821c]
call esi
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x1c], esi
mov edi, dword [ebp - 0x20]
mov cl, byte [esi]
cmp cl, 0x20
ja 0x405a5b
test cl, cl
je 0x405a2a
test edi, edi
jne 0x405a5b
test cl, cl
je 0x405a2a
cmp cl, 0x20
ja 0x405a2a
inc esi
mov dword [ebp - 0x1c], esi
mov cl, byte [esi]
jmp 0x405a19
test byte [ebp - 0x3c], 1
je 0x405a36
movzx eax, word [ebp - 0x38]
jmp 0x405a39
push 0xa
pop eax
push eax
push esi
push ebx
push 0x400000
call main
mov dword [0x407060], eax
cmp dword [0x407078], 0
jne 0x405ab4
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cl, 0x22
jne 0x405a6c
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [ebp - 0x20], edi
movzx eax, cl
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x405a7f
inc esi
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x405a0a
cmp dword [0x407064], 0
jne 0x405ac8
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x407060]
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x405e20
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x406200
call fcn.0040611c
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x405e80
cmp eax, 0xffffffff
je 0x405e80
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x405e79
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x405e79
cmp edx, 0x10000000
jae 0x405e79
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x405e76
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x405f00
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x405f3e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x405f36
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x405f40
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x405f26
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x406020
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40604f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40604f
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4030d0
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4030ef
add esp, 0x14
ret
lea ecx, [esp + 8]
push ecx
push 0x449df0
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp]
push 0
push 0
lea edx, [esp + 0xc]
push 0
push edx
push 0
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x403139
xor eax, eax
add esp, 0x14
ret
push 0
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
neg eax
sbb eax, eax
neg eax
add esp, 0x14
ret

Function at 0x4082c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x204
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], ecx
xor ebp, ebp
call fcn.00435f38
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x218]
and eax, 0xffff
push 0xa
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x408393
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x408393
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
jbe 0x408393
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x408393
mov ecx, dword [esp + 0x21c]
push 0x180
push 0x8302
push ecx
call fcn.004211fe
mov edi, eax
add esp, 0xc
test edi, edi
jl 0x408393
push esi
push ebx
push edi
call fcn.00420c6f
add esp, 0xc
cmp eax, esi
je 0x408385
mov edx, dword [esp + 0x21c]
lea eax, [esp + 0x14]
push edx
push 0x44b2c8
push eax
call fcn.004205cb
add esp, 0xc
lea ecx, [esp + 0x14]
push 0x10
push 0x44200c
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.00431adc
jmp 0x40838a
mov ebp, 1
push edi
call fcn.0042111e
add esp, 4
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x204
ret 8
Function at 0x408420
Capabilities:
Copy file

Disassembly:
push esi
push 0x453300
mov esi, ecx
push 0x432
call fcn.00432c2b
push 0x180
push 0x453300
call fcn.0042058c
push 0x453300
call fcn.00420562
mov eax, dword [esp + 0x18]
add esp, 0xc
cmp eax, 1
jne 0x40846e
push 0
push 0x453300
call fcn.004206a2
add esp, 8
test eax, eax
je 0x40854c
mov al, byte [0x453408]
test al, al
jne 0x4084bf
push str.RCDATA
push 0x431
mov ecx, esi
call fcn.00432c2b
mov eax, dword [esp + 8]
push 0x453300
push eax
mov ecx, esi
call fcn.004082c0
test eax, eax
jne 0x40854c
push 0x453300
push 0x453300
push str.Copying_to:_n_s_nThe_file_could_not_be_copied._n_no_Is__s_in_use__no_Is_your_disk_full__n
push 0x453510
call fcn.004205cb
add esp, 0x10
jmp 0x408533
push 0x453408
push 0x431
mov ecx, esi
call fcn.00432c2b
push 0
push 0x453408
call fcn.004206a2
add esp, 8
test eax, eax
je 0x4084fc
push 0x453408
push str.Source_File:_n_s_nis_missing_
push 0x453510
call fcn.004205cb
add esp, 0xc
jmp 0x408533
push 0
push 0x453300
push 0x453408
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x40854c
push 0x453300
push 0x453300
push 0x453408
push str.Copying_from:_n_s_nCopying_to:_n_s_nThe_file_could_not_be_copied._n_no_Is__s_in_use__no_Is_your_disk_full__no_You_may_have_specified_an_invalid_destination._n
push 0x453510
call fcn.004205cb
add esp, 0x14
push 0x10
push 0x4469d8
push 0x453510
mov ecx, esi
call fcn.00431adc
xor eax, eax
pop esi
ret 8
mov eax, 1
pop esi
ret 8
Function at 0x409fe0
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x248
lea ecx, [esp]
push ebx
push ebp
push esi
push edi
push 0x442af8
push eax
push 0x4497e8
push ecx
call fcn.004205cb
lea ebx, [esp + eax + 0x20]
mov edi, 0x44ce04
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea eax, [esp + 0x118]
mov edx, ecx
mov esi, edi
mov edi, ebx
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, eax
mov eax, dword [esp + 0x25c]
xor edx, edx
cmp ebp, 0xffffffff
setne dl
push 0x5c
push eax
mov esi, edx
call fcn.00420b20
add esp, 8
cmp esi, 1
jne 0x40a108
test eax, eax
je 0x40a108
lea edi, [esp + 0x144]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov al, byte [esp + 0x118]
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
test al, 0x10
rep movsb byte es:[edi], byte [esi]
je 0x40a0bd
cmp byte [esp + 0x144], 0x2e
jne 0x40a0ae
mov esi, 1
jmp 0x40a0cf
lea eax, [esp + 0x10]
push eax
call fcn.00409fe0
add esp, 4
jmp 0x40a0c8
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
cmp esi, 1
jne 0x40a0e3
lea edx, [esp + 0x118]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp eax, 1
je 0x40a06e
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp esi, 1
jne 0x40a108
mov eax, dword [esp + 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x248
ret
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x248
ret
Function at 0x40d1a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc4
push ebx
push esi
push edi
mov ecx, 5
mov esi, 0x44d814
lea edi, [esp + 0x78]
rep movsd dword es:[edi], dword [esi]
mov edx, dword [0x44d80c]
mov bl, byte [0x44d812]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov si, word [0x44d810]
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x5f]
mov dword [esp + 0x58], edx
mov word [esp + 0x5c], si
mov byte [esp + 0x5e], bl
mov dword [esp + 0x18], edx
rep stosd dword es:[edi], eax
mov cx, word [0x44d808]
mov word [esp + 0x1c], si
stosb byte es:[edi], al
mov eax, dword [0x44d804]
mov word [esp + 0x3c], cx
mov dword [esp + 0x38], eax
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x3e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x1f]
mov byte [esp + 0x1e], bl
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, 0xf
mov esi, 0x44d7c4
lea edi, [esp + 0x90]
lea edx, [esp + 0xc]
rep movsd dword es:[edi], dword [esi]
push edx
push 0x20019
lea eax, [esp + 0x98]
push 0
push eax
push connect
mov dword [esp + 0x24], 0x20
movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40d2c0
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x18]
push edx
mov edx, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x84]
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40d2b5
lea edi, [esp + 0x58]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edi, [esp + 0x38]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x38]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x18]
push ecx
push edx
push eax
call fcn.0042aa50
mov esi, eax
mov ecx, 8
neg esi
sbb esi, esi
xor eax, eax
mov edi, 0x440478
push 0x1f
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x28]
add esi, 2
push ecx
push 0x440478
call fcn.004220e0
add esp, 0x18
mov ax, si
pop edi
pop esi
pop ebx
add esp, 0xc4
ret
Function at 0x41b370
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
push 0
push esi
push edi
push eax
mov ebx, 1
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x41b3a5
push edi
push esi
call fcn.0041b310
add esp, 8
test eax, eax
jne 0x41b3a5
pop edi
pop esi
pop ebx
ret
pop edi
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x41cf50
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x214
push ebx
mov ebx, dword [esp + 0x21c]
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_PurgeComm]
push edi
push 4
push ebx
call esi
mov eax, dword [esp + 0x230]
push 0
push eax
call fcn.0040b3a0
add esp, 8
lea ecx, [esp + 0x18]
lea edx, [esp + 0x10]
push ecx
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
cmp dword [esp + 0x1c], 1
jb 0x41cf9b
push 8
push ebx
call esi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x24]
push 0xfe
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x128]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x230]
lea ecx, [esp + 0x28]
push eax
push ecx
call fcn.0040b150
lea edx, [esp + 0x30]
push edx
call fcn.0040b330
lea eax, [esp + 0x34]
lea ecx, [esp + 0x134]
push eax
push 0x44f014
push 0xfe
push ecx
call fcn.00420511
lea edx, [esp + 0x144]
push edx
call fcn.0041ea00
mov edi, 0x44f010
or ecx, 0xffffffff
xor eax, eax
add esp, 0x24
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x24]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push eax
and ecx, 3
lea eax, [esp + 0x18]
rep movsb byte es:[edi], byte [esi]
push eax
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x30]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x214
ret
Function at 0x41d070
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x1230
call fcn.00421560
mov eax, dword [0x44f02c]
mov dx, word [0x44f028]
mov ecx, dword [0x44f024]
push ebx
mov dword [esp + 4], eax
mov al, byte [0x44f02a]
push ebp
push esi
mov word [esp + 0x14], dx
mov dx, word [0x468198]
push edi
mov dword [esp + 0x14], ecx
mov byte [esp + 0x1a], al
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x42]
mov word [esp + 0x40], dx
mov ebp, dword [esp + 0x124c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x3ff
xor eax, eax
lea edi, [esp + 0x242]
mov word [esp + 0x240], dx
mov ebx, dword [esp + 0x1248]
rep stosd dword es:[edi], eax
mov ecx, ebp
stosw word es:[edi], ax
mov edx, ecx
xor eax, eax
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x240]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
push eax
call fcn.00421a10
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x1248]
and edx, 0xffff
lea eax, [eax + eax*4]
add esp, 4
lea eax, [eax + eax*4]
lea ecx, [eax + eax*4]
mov eax, dword [esp + 0x1254]
add eax, edx
lea ecx, [eax + ecx*8]
mov dword [esp + 0x28], ecx
push 0
push 0x64
call fcn.0040b3a0
add esp, 8
lea edx, [esp + 0x34]
lea eax, [esp + 0x30]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x40]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x38]
cmp eax, 0x1ff
jb 0x41d1e2
lea ecx, [esp + 0x2c]
push 0
push ecx
lea edx, [esp + 0x48]
push 0x1ff
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esp + 0x40]
push ebp
push eax
push ebx
call fcn.0040b1a0
mov eax, dword [esp + 0x1264]
add esp, 0xc
cmp eax, 1
jne 0x41d239
lea ecx, [esp + 0x10]
push ecx
push ebx
call fcn.0040af70
add esp, 8
test eax, eax
jne 0x41d27c
lea edx, [esp + 0x14]
push edx
push ebx
call fcn.0040af70
add esp, 8
test eax, eax
jne 0x41d27c
jmp 0x41d239
test eax, eax
jbe 0x41d239
lea ecx, [esp + 0x2c]
push 0
push ecx
lea edx, [esp + 0x48]
push eax
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esp + 0x40]
push ebp
push eax
push ebx
call fcn.0040b1a0
mov eax, dword [esp + 0x1264]
add esp, 0xc
cmp eax, 1
jne 0x41d239
lea ecx, [esp + 0x10]
push ecx
push ebx
call fcn.0040af70
add esp, 8
test eax, eax
jne 0x41d27c
lea edx, [esp + 0x14]
push edx
push ebx
call fcn.0040af70
add esp, 8
test eax, eax
jne 0x41d27c
lea eax, [esp + 0x1c]
push eax
call fcn.00421a10
mov eax, dword [0x4680d8]
add esp, 4
test eax, eax
jg 0x41d276
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
and edx, 0xffff
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*8]
mov ecx, dword [esp + 0x28]
cmp eax, ecx
jae 0x41d27c
jmp 0x41d148
dec dword [0x4680d8]
cmp dword [esp + 0x1250], 1
jne 0x41d2b4
push ebx
call fcn.0041ceb0
push ebx
push 0x44f01c
lea ecx, [esp + 0x24c]
push 0xfff
push ecx
call fcn.00420511
lea edx, [esp + 0x254]
push edx
call fcn.0041ea00
add esp, 0x18
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x1230
ret