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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
movzx ecx, word [eax + 0x14]
push ebx
push esi
push edi
movzx edi, word [eax + 6]
xor ebx, ebx
mov byte [ebp - 1], 0
lea esi, [ecx + eax + 0x18]
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
cmp edi, ebx
jbe 0x418a8d
push esi
push str..rsrc
call fcn.004432aa
add esp, 8
test eax, eax
je 0x418a81
inc ebx
add esi, 0x28
cmp ebx, edi
jb 0x418a65
jmp 0x418a8d
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 8]
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], eax
mov edi, dword [ebp - 8]
add edi, dword [ebp + 8]
je 0x418b71
mov esi, dword [ebp - 0xc]
push 2
lea eax, [esi + edi - 2]
push eax
push 0x4550a8
call fcn.0043078e
add esp, 0xc
test eax, eax
jne 0x418b71
cmp dword [esi + edi - 6], 1
jne 0x418b71
mov ecx, dword [esi + edi - 0xe]
mov eax, dword [esi + edi - 0xa]
mov edx, dword [esi + edi - 0x12]
mov ebx, dword [ebp + 0xc]
sub esi, 0x12
sub esi, eax
test byte [ebx + 0x30], 1
mov dword [ebp - 0xc], ecx
mov dword [ebp + 8], edx
je 0x418b0a
lea ecx, [ebx + 0x20]
push eax
call fcn.0040d9a0
mov ecx, dword [ebx + 0x20]
mov eax, dword [ebx + 0x24]
cmp ecx, eax
je 0x418b0a
sub eax, ecx
push eax
lea eax, [esi + edi]
push eax
push ecx
call fcn.0042b4c0
add esp, 0xc
mov byte [ebp - 1], 1
mov eax, dword [ebp - 0xc]
sub esi, eax
test byte [ebx + 0x30], 4
je 0x418b3c
lea ecx, [ebx + 0x10]
push eax
call fcn.0040d9a0
mov ecx, dword [ebx + 0x10]
mov eax, dword [ebx + 0x14]
cmp ecx, eax
je 0x418b3c
sub eax, ecx
push eax
lea edx, [esi + edi]
push edx
push ecx
call fcn.0042b4c0
add esp, 0xc
mov byte [ebp - 1], 1
test byte [ebx + 0x30], 2
je 0x418b71
mov eax, dword [ebp + 8]
push eax
mov ecx, ebx
call fcn.0040d9a0
mov ecx, dword [ebx]
mov eax, dword [ebx + 4]
cmp ecx, eax
je 0x418b71
sub esi, dword [ebp + 8]
sub eax, ecx
push eax
add esi, edi
push esi
push ecx
call fcn.0042b4c0
add esp, 0xc
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41926d
Capabilities:
Check if file exists
Extract resource via kernel32 functions
Get file attributes

Disassembly:
push 0x20
mov eax, 0x4465af
call fcn.0042bea7
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 4], ebx
call fcn.0040ce10
mov esi, str.SpreadsheetToolsempty.xls
push esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], 1
call fcn.0042c321
pop ecx
pop ecx
push eax
push esi
mov ecx, edi
call fcn.0040d3a0
cmp dword [edi + 0x14], 8
jb 0x4192b4
mov eax, dword [edi]
jmp 0x4192b6
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41937f
call fcn.0041c349
mov esi, eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
push str.RT_ZIPPED_DATA
push 0x7f
push esi
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x1c], eax
cmp eax, ebx
je 0x419377
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x419377
push dword [ebp - 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x419377
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
cmp esi, ebx
je 0x419377
push dword [ebp - 0x14]
lea ecx, [ebp - 0x2c]
call fcn.0040d9a0
push dword [ebp - 0x14]
push esi
push dword [ebp - 0x2c]
call fcn.0042b4c0
mov esi, dword [ebp - 0x28]
add esp, 0xc
cmp dword [ebp - 0x2c], esi
je 0x419377
lea ecx, [ebp - 0xd]
call fcn.0041d6d5
cmp dword [edi + 0x14], 8
mov byte [ebp - 4], 2
jb 0x419358
mov eax, dword [edi]
jmp 0x41935a
mov eax, edi
sub esi, dword [ebp - 0x2c]
push ebx
push eax
push esi
push dword [ebp - 0x2c]
lea ecx, [ebp - 0xd]
call fcn.0042a653
lea ecx, [ebp - 0xd]
mov byte [ebp - 4], 1
call fcn.0041d891
lea ecx, [ebp - 0x2c]
call fcn.00404b70
mov eax, edi
call fcn.0042bf7f
ret

Function at 0x41972a
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 8
jb 0x41973b
mov eax, dword [esi]
jmp 0x41973d
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41975a
cmp dword [esi + 0x14], 8
jb 0x419751
mov esi, dword [esi]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop esi
pop ebp
ret

Function at 0x419786
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x419794
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
pop ebp
ret
Function at 0x41a1cc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x84
mov eax, 0x446804
call fcn.0042bf10
mov eax, dword [ebp + 8]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x78], eax
mov byte [ebp - 0x71], 0
call fcn.0041c349
push 0x44be10
mov esi, eax
push 0x7d
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x41a328
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x41a328
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
xor edi, edi
cmp eax, edi
je 0x41a328
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
cmp esi, edi
je 0x41a328
lea ecx, [ebp - 0x90]
call fcn.00424837
mov dword [ebp - 4], edi
cmp ebx, edi
jbe 0x41a319
push ebx
lea ecx, [ebp - 0x90]
call fcn.0040d9a0
push ebx
push esi
push dword [ebp - 0x90]
call fcn.0042b4c0
add esp, 0xc
lea ecx, [ebp - 0x54]
call fcn.00421d22
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 1
call fcn.004219e6
test eax, eax
je 0x41a30d
push dword [ebp - 0x78]
lea ecx, [ebp - 0x90]
call fcn.00424f0e
push dword [ebp - 0x78]
lea ecx, [ebp - 0x34]
call fcn.00401100
push edi
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.004023a0
test al, al
je 0x41a2c0
mov byte [ebp - 0x71], 1
jmp 0x41a301
cmp dword [ebp - 0x1c], edi
je 0x41a301
push dword [ebp - 0x7c]
lea eax, [ebp - 0x70]
push eax
call fcn.00419a65
cmp dword [eax + 0x14], 8
pop ecx
pop ecx
jb 0x41a2db
mov eax, dword [eax]
cmp dword [ebp - 0x18], 8
mov ecx, dword [ebp - 0x2c]
jae 0x41a2e7
lea ecx, [ebp - 0x2c]
push 0x1010
push eax
push ecx
call fcn.0041963c
add esp, 0xc
push edi
push 1
lea ecx, [ebp - 0x70]
call fcn.00409e40
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.00401130
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0
call fcn.004219d9
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x90]
call fcn.00424847
mov al, byte [ebp - 0x71]
call fcn.0042bf93
ret
Function at 0x41a3bc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x310
mov eax, 0x446866
call fcn.0042bf10
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x314], edi
mov dword [ebp - 0x31c], eax
cmp dword [esi + 0x10], edi
je 0x41a549
cmp dword [esi + 0x14], 8
jb 0x41a3f2
mov eax, dword [esi]
jmp 0x41a3f4
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41a549
push esi
lea ecx, [ebp - 0x30c]
call fcn.00424288
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x30c]
mov dword [ebp - 4], edi
call fcn.004242e3
xor ebx, ebx
inc ebx
mov byte [ebp - 4], bl
jmp 0x41a527
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00419ab7
pop ecx
pop ecx
or dword [ebp - 0x314], ebx
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 3
jb 0x41a44e
mov eax, dword [eax]
push eax
push str.launch
call fcn.0042c981
pop ecx
pop ecx
test eax, eax
je 0x41a497
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.00419a42
or dword [ebp - 0x314], 2
cmp dword [eax + 0x14], 8
pop ecx
pop ecx
jb 0x41a47d
mov eax, dword [eax]
push 4
push eax
push str..xlt
call fcn.0042d236
add esp, 0xc
mov byte [ebp - 0x30d], bl
test eax, eax
jne 0x41a49e
mov byte [ebp - 0x30d], 0
test byte [ebp - 0x314], 2
je 0x41a4b8
and dword [ebp - 0x314], 0xfffffffd
push edi
push ebx
lea ecx, [ebp - 0x64]
call fcn.00409e40
mov dword [ebp - 4], ebx
test byte [ebp - 0x314], bl
je 0x41a4d4
and dword [ebp - 0x314], 0xfffffffe
push edi
push ebx
lea ecx, [ebp - 0x48]
call fcn.00409e40
cmp byte [ebp - 0x30d], 0
je 0x41a4fe
mov ecx, dword [ebp - 0x31c]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x318]
push eax
call fcn.0041f0f5
lea ecx, [ebp - 0x318]
call fcn.0041f016
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x30c]
call fcn.004242e3
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00408da0
push edi
push ebx
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], bl
call fcn.00409e40
cmp dword [ebp - 0x1c], edi
jne 0x41a42d
push edi
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00409e40
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30c]
call fcn.00424252
call fcn.0042bf93
ret
Function at 0x41a5d6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x510
mov eax, 0x446903
call fcn.0042bf10
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x504], eax
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], eax
mov dword [ebp - 0x51c], esi
mov word [esi], cx
mov dword [ebp - 4], eax
mov dword [ebp - 0x504], 1
call fcn.0041c349
push 0x44be10
mov edi, eax
push 0x7d
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x41a729
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x500], eax
test eax, eax
je 0x41a729
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41a729
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x41a729
lea ecx, [ebp - 0x518]
call fcn.00424837
cmp dword [ebp - 0x500], 0
mov dword [ebp - 4], 1
jbe 0x41a71a
push dword [ebp - 0x500]
lea ecx, [ebp - 0x518]
call fcn.0040d9a0
push dword [ebp - 0x500]
push edi
push dword [ebp - 0x518]
call fcn.0042b4c0
add esp, 0xc
lea ecx, [ebp - 0x30]
call fcn.00421d22
lea eax, [ebp - 0x518]
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.004219e6
test eax, eax
je 0x41a70e
lea ecx, [ebp - 0x4fc]
call fcn.0041e033
lea eax, [ebp - 0x4fc]
push eax
lea ecx, [ebp - 0x518]
mov byte [ebp - 4], 3
call fcn.00424f0e
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x4f4]
push eax
mov ecx, esi
call fcn.00409ce0
lea ecx, [ebp - 0x4fc]
mov byte [ebp - 4], 2
call fcn.0041de39
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.004219d9
lea ecx, [ebp - 0x518]
mov byte [ebp - 4], 0
call fcn.00424847
mov eax, esi
call fcn.0042bf93
ret
Function at 0x41c414
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x45d320]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x234], eax
lea eax, [ebp - 0x224]
xor ebx, ebx
push eax
push ebx
mov dword [ebp - 0x230], edi
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
jne 0x41c576
push dword [ebp - 0x224]
call fcn.0042b401
push dword [ebp - 0x224]
mov esi, eax
push ebx
push esi
mov dword [ebp - 0x22c], esi
call fcn.0042c390
add esp, 0x10
lea eax, [ebp - 0x224]
push eax
push esi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x41c55e
jmp 0x41c4e5
push 8
lea eax, [esi + 0x190]
pop ecx
cmp dword [eax], ecx
jbe 0x41c4a9
mov dword [eax], ecx
cmp dword [eax], ebx
jbe 0x41c4e3
mov al, byte [esi + 0x194]
cmp al, bl
jne 0x41c4e3
cmp byte [esi + 0x195], 0x50
jne 0x41c4c9
cmp byte [esi + 0x196], 0x56
je 0x41c4e3
cmp al, bl
jne 0x41c4e3
cmp byte [esi + 0x195], 0xc
jne 0x41c4df
cmp byte [esi + 0x196], 0x29
je 0x41c4e3
cmp al, bl
je 0x41c4eb
mov esi, dword [esi]
cmp esi, ebx
jne 0x41c49a
jmp 0x41c55e
push dword [esi + 0x190]
mov ecx, edi
call fcn.0040d9a0
xor edi, edi
cmp dword [esi + 0x190], ebx
jbe 0x41c54e
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax]
mov dl, byte [esi + edi + 0x194]
mov byte [edi + ecx], dl
mov eax, dword [eax]
movzx eax, byte [eax + edi]
push eax
lea eax, [ebp - 0x18]
push str._02d
push eax
call fcn.0042d38b
lea eax, [ebp - 0x18]
push eax
call fcn.0042c321
mov ecx, dword [ebp - 0x234]
add esp, 0x10
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040d3a0
inc edi
cmp edi, dword [esi + 0x190]
jb 0x41c502
mov edi, dword [ebp - 0x230]
mov dword [ebp - 0x228], 1
push dword [ebp - 0x22c]
call fcn.0042c69d
pop ecx
cmp dword [ebp - 0x228], ebx
jne 0x41c601
push 0x44c9ac
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x41c601
push 0x104
lea ecx, [ebp - 0x220]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push ebx
push ebx
push 3
push ebx
push 3
push closesocket
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41c601
push 8
lea eax, [ebp - 0x238]
push ebx
push eax
call fcn.0042c390
add esp, 0xc
push ebx
push ebx
lea eax, [ebp - 0x238]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x41c5fa
push 8
mov ecx, edi
call fcn.0040d9a0
push 8
lea eax, [ebp - 0x238]
push eax
push dword [edi]
call fcn.0042b4c0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x228]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042be98
leave
ret
Function at 0x41d6d8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
xor cl, cl
xor eax, eax
xor cl, byte [eax + edx]
inc eax
cmp eax, 8
jb 0x41d6e2
mov al, byte [ebp + 8]
sub al, cl
mov ecx, dword [ebp + 0xc]
xor al, byte [ecx + edx]
pop ebp
ret 0xc

Function at 0x41d6fa
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor bl, bl
push edi
mov dword [ebp - 4], ecx
xor eax, eax
mov ecx, dword [ebp + 0xc]
xor bl, byte [eax + ecx]
inc eax
cmp eax, 8
jb 0x41d708
mov edi, dword [ebp + 8]
xor bl, byte [edi]
xor esi, esi
mov al, byte [edi + esi + 1]
push dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
xor al, bl
movzx eax, al
push esi
push eax
call fcn.0041d6d8
mov ecx, dword [ebp + 0x10]
mov byte [esi + ecx], al
inc esi
cmp esi, 8
jb 0x41d71b
pop edi
pop esi
mov al, 1
pop ebx
leave
ret 0xc
Function at 0x42138d
Capabilities:
Create udp socket

Disassembly:
push esi
push 0
push 2
push 2
mov esi, ecx
call dword [sym.imp.WS2_32.dll_socket]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [esi], eax
pop esi
mov eax, ecx
ret

Function at 0x4213aa
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.WS2_32.dll_connect]
neg eax
sbb eax, eax
inc eax
pop ebp
ret 8

Function at 0x421412
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x45d320]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
xor edx, edx
mov edi, 0x3e8
div edi
mov esi, dword [ebp + 8]
xor edi, edi
inc edi
mov dword [ebp - 0x108], edi
mov dword [ebp - 0x110], eax
mov eax, dword [ecx]
mov dword [ebp - 0x104], eax
lea eax, [ebp - 0x110]
push eax
push 0
push 0
lea eax, [ebp - 0x108]
push eax
push 0
mov dword [ebp - 0x10c], edx
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x421476
xor eax, eax
jmp 0x421481
xor ecx, ecx
test eax, eax
setne cl
mov eax, edi
mov dword [esi], ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0042be98
leave
ret 8

Function at 0x421496
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x45d320]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push eax
lea eax, [ebp - 0x30]
push eax
mov edi, ecx
call fcn.00408a20
cmp dword [ebp - 0x1c], 0x10
mov esi, dword [ebp - 0x30]
pop ecx
pop ecx
jae 0x4214c5
lea esi, [ebp - 0x30]
push 0x10
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.0042c390
add esp, 0xc
push 2
pop eax
push dword [ebp + 0xc]
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
push esi
mov word [ebp - 0x12], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x42150d
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x42151e
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
push 0x10
lea eax, [ebp - 0x14]
push eax
mov ecx, edi
call fcn.004213aa
mov esi, eax
jmp 0x421520
xor esi, esi
push 0
push 1
lea ecx, [ebp - 0x30]
call fcn.004097e0
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042be98
leave
ret 8

Function at 0x42190c
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebx
push edi
mov ebx, ecx
xor edi, edi
cmp dword [ebx], edi
je 0x42191b
xor eax, eax
inc eax
jmp 0x421964
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 0xf0000008
push 1
push edi
push edi
push ebx
call esi
cmp eax, edi
jne 0x421963
push edi
push 1
push edi
push dword [0x45cfa8]
push ebx
call esi
cmp eax, edi
jne 0x421963
push 8
push 1
push edi
push dword [0x45cfa8]
push ebx
call esi
cmp eax, edi
jne 0x421963
push 0x20
push 1
push edi
push dword [0x45cfa8]
push ebx
call esi
pop esi
pop edi
pop ebx
ret
Function at 0x421967
Capabilities:
Encrypt data using des via winapi
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x14]
mov ebx, dword [esi + 0x10]
push edi
mov edi, dword [ebp + 0xc]
push edi
push 0
push 0
push 0x8003
push dword [ebp + 8]
mov byte [ebp - 1], 0
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4219d1
cmp dword [esi + 0x14], 0x10
jb 0x42199a
mov esi, dword [esi]
push 0
push ebx
push esi
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x4219c9
push dword [ebp + 0x10]
push 0
push dword [edi]
push 0x6603
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x4219c9
mov byte [ebp - 1], 1
jmp 0x4219d1
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4219e6
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
push edi
mov edi, ecx
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call fcn.0042190c
test eax, eax
jne 0x421a04
xor eax, eax
jmp 0x421a56
lea eax, [edi + 4]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push dword [edi]
call fcn.00421967
add esp, 0x10
test al, al
je 0x421a00
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
cmp ecx, eax
je 0x421a42
sub eax, ecx
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push ecx
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, esi
pop edi
pop esi
leave
ret 4
Function at 0x421a82
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
and dword [ebp - 4], 0
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
push edi
mov edi, ecx
cmp eax, dword [esi + 4]
je 0x421b33
push ebx
call fcn.0042190c
mov ebx, dword [ebp + 0xc]
test eax, eax
je 0x421b24
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x8003
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x421b24
mov eax, dword [ebp + 0x10]
xor edi, edi
cmp eax, edi
jne 0x421ad5
mov eax, dword [esi + 4]
sub eax, dword [esi]
mov esi, dword [esi]
add esi, dword [ebp + 0x14]
push edi
push eax
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x421b16
push 0x10
pop eax
push eax
mov ecx, ebx
mov dword [ebp + 8], eax
call fcn.0040d9a0
mov eax, dword [ebx]
push edi
lea ecx, [ebp + 8]
push ecx
push eax
push 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x421b16
mov dword [ebp - 8], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 8], edi
jne 0x421b32
push 1
mov ecx, ebx
call fcn.0040d9a0
mov eax, dword [ebx]
mov byte [eax], 0x17
pop ebx
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret 0x10

Function at 0x421b3c
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor edi, edi
mov esi, ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
call fcn.0042190c
test eax, eax
jne 0x421b5e
xor eax, eax
jmp 0x421bf4
lea eax, [esi + 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [esi]
call fcn.00421967
add esp, 0x10
test al, al
je 0x421b57
push ebx
mov ebx, dword [ebp + 8]
mov esi, dword [ebx + 4]
sub esi, dword [ebx]
mov dword [ebp - 4], edi
mov eax, esi
and eax, 7
je 0x421b9b
push 8
pop ecx
sub ecx, eax
add esi, ecx
push edi
push esi
mov ecx, ebx
call fcn.00413b40
push esi
lea eax, [ebp - 4]
push eax
push edi
push edi
push edi
push edi
push dword [ebp - 8]
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov dword [ebp + 8], eax
cmp eax, edi
je 0x421bde
cmp dword [ebp - 4], esi
jbe 0x421bc7
push edi
push dword [ebp - 4]
mov ecx, ebx
call fcn.00413b40
mov ebx, dword [ebx]
push esi
lea eax, [ebp - 4]
push eax
push ebx
push edi
push edi
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov dword [ebp + 8], eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp + 8]
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x4242e3
Capabilities:
Enumerate files on windows

Disassembly:
push 4
mov eax, 0x447da3
call fcn.0042bea7
mov esi, ecx
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], ecx
mov word [ebx], ax
mov eax, dword [esi + 0x54]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x10], 1
cmp eax, 0xffffffff
jne 0x42438d
push eax
push ecx
lea edi, [esi + 0x38]
push esi
mov ecx, edi
call fcn.00409ce0
push edi
call fcn.0040cc80
pop ecx
push 0xffffffffffffffff
push 0
lea eax, [esi + 0x1c]
push eax
mov ecx, edi
call fcn.00405750
cmp dword [edi + 0x14], 8
jb 0x424347
mov eax, dword [edi]
jmp 0x424349
mov eax, edi
lea edi, [esi + 0x58]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi + 0x54], eax
cmp eax, 0xffffffff
je 0x4243c5
push 0x2e
pop ecx
cmp cx, word [esi + 0x84]
jne 0x42439c
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
push eax
call edi
test eax, eax
je 0x4243c5
push 0x2e
pop eax
cmp ax, word [esi + 0x84]
jne 0x4243c5
lea eax, [esi + 0x58]
push eax
push dword [esi + 0x54]
call edi
jmp 0x424398
lea ecx, [esi + 0x58]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4243c5
push 0xffffffffffffffff
push 0
push esi
mov ecx, ebx
call fcn.00409ce0
push ebx
call fcn.0040cc80
add esi, 0x84
push esi
call fcn.0042c321
pop ecx
pop ecx
push eax
push esi
mov ecx, ebx
call fcn.0040d3a0
mov eax, ebx
call fcn.0042bf7f
ret 4
Function at 0x42560b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x45d320]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x210], 0
push esi
mov esi, dword [ebp + 0xc]
xor eax, eax
push edi
mov edi, dword [ebp + 8]
mov word [ebp - 0x20c], ax
test esi, esi
je 0x42566d
cmp word [esi], ax
je 0x42566d
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x20c]
push eax
call fcn.00419610
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0042c33c
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
mov ecx, edi
call fcn.00408d50
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0042be98
leave
ret