joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6026a0
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov eax, 8
call fcn.006f5ae0
mov dword [ebp - 8], 1
cmp dword [ebp + 8], 0xffffffff
jne 0x6026eb
call fcn.00576670
push str.BIO_connect
push 0x5f
push str.crypto_bio_bio_sock2.c
call fcn.005766c0
add esp, 0xc
push 0
push 0x87
push 0x20
call fcn.00576710
add esp, 0xc
xor eax, eax
jmp 0x6028b7
mov eax, dword [ebp + 0x10]
and eax, 8
je 0x6026fc
mov dword [ebp - 4], 1
jmp 0x602703
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.005bcf10
add esp, 8
test eax, eax
jne 0x60271e
xor eax, eax
jmp 0x6028b7
mov eax, dword [ebp + 0x10]
and eax, 4
je 0x6027a1
push 4
lea ecx, [ebp - 8]
push ecx
push 8
push 0xffff
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x6027a1
call fcn.00576670
push str.BIO_connect
push 0x69
push str.crypto_bio_bio_sock2.c
call fcn.005766c0
add esp, 0xc
push str.calling_setsockopt__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.00576710
add esp, 0xc
call fcn.00576670
push str.BIO_connect
push 0x6b
push str.crypto_bio_bio_sock2.c
call fcn.005766c0
add esp, 0xc
push 0
push 0x89
push 0x20
call fcn.00576710
add esp, 0xc
xor eax, eax
jmp 0x6028b7
mov eax, dword [ebp + 0x10]
and eax, 0x10
je 0x602821
push 4
lea ecx, [ebp - 8]
push ecx
push 1
push 6
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x602821
call fcn.00576670
push str.BIO_connect
push 0x73
push str.crypto_bio_bio_sock2.c
call fcn.005766c0
add esp, 0xc
push str.calling_setsockopt__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.00576710
add esp, 0xc
call fcn.00576670
push str.BIO_connect
push 0x75
push str.crypto_bio_bio_sock2.c
call fcn.005766c0
add esp, 0xc
push 0
push 0x8a
push 0x20
call fcn.00576710
add esp, 0xc
xor eax, eax
jmp 0x6028b7
mov eax, dword [ebp + 0xc]
push eax
call fcn.005bd2b0
add esp, 4
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00583860
add esp, 4
push eax
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x6028b2
push 0xffffffffffffffff
call fcn.00602630
add esp, 4
test eax, eax
jne 0x6028ae
call fcn.00576670
push str.BIO_connect
push 0x7d
push str.crypto_bio_bio_sock2.c
call fcn.005766c0
add esp, 0xc
push str.calling_connect__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.00576710
add esp, 0xc
call fcn.00576670
push str.BIO_connect
push 0x7f
push str.crypto_bio_bio_sock2.c
call fcn.005766c0
add esp, 0xc
push 0
push 0x67
push 0x20
call fcn.00576710
add esp, 0xc
xor eax, eax
jmp 0x6028b7
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x6a5a30
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, 4
call fcn.006f5ae0
push 0x78
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.006f7570
add esp, 0xc
mov dword [ebp - 4], 0
jmp 0x6a5a5f
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 8
jge 0x6a5a7a
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx*4 + 0x7af2e0]
mov dword [eax + edx*4], ecx
jmp 0x6a5a56
mov esp, ebp
pop ebp
ret
Function at 0x6eb1d0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 8
call fcn.006f5ae0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x28]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
cmp dword [edx], 5
je 0x6eb20c
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.006ebba0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jg 0x6eb20c
mov eax, dword [ebp - 4]
jmp 0x6eb263
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x24]
push edx
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 4], eax
push 0xf
mov eax, dword [ebp + 8]
push eax
call fcn.005912c0
add esp, 8
cmp dword [ebp - 4], 0
jg 0x6eb260
mov ecx, dword [ebp - 4]
push ecx
call fcn.00602630
add esp, 4
test eax, eax
je 0x6eb260
push 0xa
mov edx, dword [ebp + 8]
push edx
call fcn.00591e10
add esp, 8
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x7166c1
Capabilities:
Read file on windows

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

Function at 0x719318
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00718e6b

Function at 0x719804
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00719786
Function at 0x40336f
Capabilities:
Check if file exists

Disassembly:
push 0x9c
mov eax, 0x61df1a
call fcn.0040d3e4
lea eax, [ebp - 0x40]
push eax
call fcn.0040307f
xor ebx, ebx
lea eax, [ebp - 0x40]
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x2c], 8
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x403510
lea ecx, [ebp - 0x90]
call fcn.004a8941
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x94]
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push ecx
cmovae eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x98]
push ecx
push eax
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x98], ebx
call fcn.004aa9a7
add esp, 0xc
test eax, eax
je 0x403505
cmp dword [ebp - 0x98], ebx
je 0x403505
cmp dword [ebp - 0x94], ebx
jbe 0x403505
push 0xf
pop esi
push dword [ebp - 0x94]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], ebx
push dword [ebp - 0x98]
mov dword [ebp - 0x14], esi
mov byte [ebp - 0x28], bl
call fcn.0040278f
push 0x10
push 0x10
push str.Zi5DMm6eCd3xhgJz
push str.Yl3T1C9vAyLVfTox
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004aaac8
add esp, 0x18
lea ecx, [ebp - 0x28]
push eax
call fcn.00402664
lea ecx, [ebp - 0x58]
call fcn.00402aba
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x90]
call fcn.004a8ef8
test al, al
je 0x4034fd
xorps xmm0, xmm0
mov dword [ebp - 0x48], ebx
push str.timestamp
lea ecx, [ebp - 0x58]
movlpd qword [ebp - 0xa0], xmm0
mov dword [ebp - 0x44], esi
mov byte [ebp - 0x58], bl
call fcn.004027ec
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x90]
call fcn.004a8e60
lea ecx, [ebp - 0x58]
mov bl, al
call fcn.00402aba
test bl, bl
je 0x4034fb
lea ecx, [ebp - 0xa8]
call fcn.0040595a
mov eax, dword [ebp - 0xa0]
mov esi, 0xf8475800
push 0xd
cdq
push esi
push edx
push eax
call fcn.0040d560
mov ecx, dword [ebp - 0xa8]
sub ecx, eax
mov eax, dword [ebp - 0xa4]
push 0xd
push esi
sbb eax, edx
push eax
push ecx
call fcn.0054cf80
cmp eax, 0x1e0
setl bl
jmp 0x4034fd
xor ebx, ebx
lea ecx, [ebp - 0x28]
call fcn.00402aba
lea ecx, [ebp - 0x90]
call fcn.004a89f7
lea ecx, [ebp - 0x40]
call fcn.0040283b
mov al, bl
call fcn.0040d38e
ret

Function at 0x405b49
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x6b306c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x214]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsCompatibility_AssistantPersisted
push reloc.gdiplus.dll_Ordinal_1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405bc0
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x405bc0
push 4
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 1
push eax
push 4
push 0
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c879
leave
ret
Function at 0x405d04
Capabilities:
Check if file exists

Disassembly:
push 0x4c
mov eax, 0x61e3d5
call fcn.0040d3e4
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x54], edi
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x405d21
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
xor ebx, ebx
test eax, eax
jne 0x405d84
push 0x3a8
sub esp, 0x18
mov ecx, esp
push esi
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.0040227b
lea eax, [ebp - 0x28]
push eax
call fcn.004a9acd
mov dword [ebp - 4], ebx
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x50]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ecx
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.004ab853
add esp, 0x28
lea ecx, [ebp - 0x50]
call fcn.00405c3c
lea ecx, [ebp - 0x28]
call fcn.0040283b
jmp 0x405d84
mov edi, dword [ebp - 0x54]
cmp dword [esi + 0x14], 0x10
mov ecx, esi
jb 0x405d8e
mov ecx, dword [esi]
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x405d98
mov eax, dword [edi]
push 0
push 0
push 0x69fa78
push ecx
push eax
call fcn.004b8010
mov edi, eax
test edi, edi
je 0x405db9
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
test edi, edi
je 0x405dc5
cmp ebx, 3
jl 0x405d81
test edi, edi
sete al
call fcn.0040d38e
ret
Function at 0x40a09b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x61e8b8
call fcn.0040d452
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x418], ebx
push 0x60
push ebx
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x40a118
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x40a118
call fcn.00408909
mov esi, eax
jmp 0x40a20f
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x40a13b
call fcn.00408909
jmp 0x40a202
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x40a131
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x420], esi
lea ecx, [esi + 1]
cmp ecx, esi
jae 0x40a16e
mov esi, 0x8007000e
jmp 0x40a204
push 2
pop edx
mov byte [ebp - 4], 2
call fcn.00408ed1
cmp eax, 0x400
jbe 0x40a18f
push eax
lea ecx, [ebp - 0x418]
call fcn.004088e4
jmp 0x40a1b1
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x40a1b1
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
je 0x40a164
push esi
push dword [ebp - 0x418]
push esi
push dword [ebp - 0x41c]
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x40a131
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.00409f46
mov esi, eax
test edi, edi
je 0x40a20f
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x40a228
lea ecx, [ebp - 0x418]
call fcn.004088cf
mov eax, esi
call fcn.0040d39f
ret 0x10
Function at 0x413fd0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
test eax, eax
jge 0x413ff1
mov ecx, dword [ebp - 4]
or ecx, 8
mov dword [ebp - 4], ecx
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
test edx, edx
jge 0x414009
mov eax, dword [ebp - 4]
or eax, 1
mov dword [ebp - 4], eax
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
test ecx, ecx
jge 0x414021
mov edx, dword [ebp - 4]
or edx, 2
mov dword [ebp - 4], edx
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
test eax, eax
jge 0x414037
mov ecx, dword [ebp - 4]
or ecx, 4
mov dword [ebp - 4], ecx
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
test edx, edx
jge 0x41404f
mov eax, dword [ebp - 4]
or eax, 0x20
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x41b810
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 4], ecx
call dword [sym.imp.USER32.dll_GetFocus]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
cmp ecx, dword [eax + 0xa8]
je 0x41b84e
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
cmp eax, dword [edx + 0x108]
je 0x41b84e
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xa8]
push edx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0x108]
jne 0x41b861
jmp 0x41b9d5
mov edx, dword [ebp - 4]
cmp dword [edx + 0x108], 0
je 0x41b8f3
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x28], 0x17
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x24], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x20], eax
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x108]
mov edx, dword [ebp - 4]
mov eax, dword [ecx]
mov ecx, dword [edx + 0x108]
mov edx, dword [eax + 0x14c]
call edx
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x41b8e6
push 0
push 0
push 0
push str.killfocus
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x108]
push edx
mov ecx, dword [ebp - 4]
call fcn.0041b120
mov eax, dword [ebp - 4]
mov dword [eax + 0x108], 0
cmp dword [ebp + 8], 0
jne 0x41b8fe
jmp 0x41b9d5
cmp dword [ebp + 8], 0
je 0x41b9d5
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 0x1c]
call eax
cmp eax, dword [ebp - 4]
jne 0x41b9d5
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 0x108]
call eax
movzx ecx, al
test ecx, ecx
je 0x41b9d5
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0x114]
call edx
movzx eax, al
test eax, eax
je 0x41b9d5
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [ecx + 0x108], edx
xor eax, eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x48], 0x18
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x44], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x40], eax
lea edx, [ebp - 0x48]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x108]
mov edx, dword [ebp - 4]
mov eax, dword [ecx]
mov ecx, dword [edx + 0x108]
mov edx, dword [eax + 0x14c]
call edx
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x41b9d5
push 0
push 0
push 0
push str.setfocus
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x108]
push edx
mov ecx, dword [ebp - 4]
call fcn.0041b120
mov esp, ebp
pop ebp
ret 8
Function at 0x41d2d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x6b306c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov dword [ebp - 0x214], ecx
mov eax, dword [ebp + 8]
shr eax, 0x10
and eax, 0xffff
movzx ecx, ax
test ecx, ecx
je 0x41d351
mov edx, dword [ebp + 8]
movzx eax, word [edx]
cmp eax, 0x3c
jne 0x41d32a
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x214]
add ecx, 0x28
call fcn.0045dd10
movzx edx, al
test edx, edx
jne 0x41d328
xor eax, eax
jmp 0x41d429
jmp 0x41d34c
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x214]
add ecx, 0x28
call fcn.0045dd90
movzx ecx, al
test ecx, ecx
jne 0x41d34c
xor eax, eax
jmp 0x41d429
jmp 0x41d3f8
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004138e0
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 0
jne 0x41d37b
xor eax, eax
jmp 0x41d429
mov ecx, dword [ebp - 0x218]
push ecx
call fcn.004138e0
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
jne 0x41d3ae
mov edx, dword [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
jmp 0x41d429
push 0
mov eax, dword [ebp - 0x218]
push eax
call fcn.004138e0
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
mov ecx, dword [ebp - 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
mov ecx, dword [ebp - 0x214]
add ecx, 0x28
call fcn.0045e440
movzx edx, al
test edx, edx
jne 0x41d3eb
xor eax, eax
jmp 0x41d429
mov eax, dword [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea ecx, [ebp - 0x210]
push ecx
mov ecx, dword [ebp - 0x214]
add ecx, 0x28
call fcn.0045db90
sub esp, 0x20c
mov ecx, 0x83
mov esi, eax
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x214]
call fcn.0041cd90
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c879
mov esp, ebp
pop ebp
ret 8
Function at 0x420900
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x6b306c]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x121], 0
mov dword [ebp - 0x120], 0x11c
push 0x118
push 0
lea eax, [ebp - 0x11c]
push eax
call fcn.004d7fc0
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea edx, [ebp - 0x114]
push edx
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x11c]
push ecx
call fcn.00420840
add esp, 0xc
mov edx, dword [ebp - 0x11c]
mov dword [ebp - 0x128], edx
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0x12c], eax
mov ecx, dword [ebp - 0x114]
mov dword [ebp - 0x130], ecx
cmp dword [ebp - 0x128], 0xa
jb 0x42099a
mov byte [ebp - 0x121], 1
jmp 0x4209bc
cmp dword [ebp - 0x128], 6
jne 0x4209bc
movzx edx, byte [ebp - 6]
cmp edx, 1
jne 0x4209bc
cmp dword [ebp - 0x12c], 3
jb 0x4209bc
mov byte [ebp - 0x121], 1
mov al, byte [ebp - 0x121]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c879
mov esp, ebp
pop ebp
ret
Function at 0x421020
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x6b306c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
je 0x421054
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x421054
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, dword [ebp + 0xc]
movzx eax, word [edx]
test eax, eax
jne 0x421063
jmp 0x4211cc
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x41c], ecx
mov edx, dword [ebp - 0x41c]
mov dword [ebp - 0x418], edx
mov eax, dword [ebp - 0x418]
movzx ecx, word [eax]
test ecx, ecx
je 0x4210be
mov edx, dword [ebp - 0x418]
movzx eax, word [edx]
cmp eax, 0x2f
je 0x4210a1
mov ecx, dword [ebp - 0x418]
movzx edx, word [ecx]
cmp edx, 0x5c
jne 0x4210ad
mov eax, dword [ebp - 0x418]
mov dword [ebp - 0x41c], eax
mov ecx, dword [ebp - 0x418]
add ecx, 2
mov dword [ebp - 0x418], ecx
jmp 0x421078
mov edx, dword [ebp - 0x41c]
mov dword [ebp - 0x424], edx
mov eax, dword [ebp - 0x41c]
cmp eax, dword [ebp + 0xc]
je 0x42114e
mov ecx, dword [ebp - 0x41c]
sub ecx, dword [ebp + 0xc]
sar ecx, 1
shl ecx, 1
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x414]
push eax
call fcn.004d8190
add esp, 0xc
mov ecx, dword [ebp - 0x41c]
sub ecx, dword [ebp + 0xc]
sar ecx, 1
shl ecx, 1
mov dword [ebp - 0x420], ecx
cmp dword [ebp - 0x420], 0x208
jae 0x421117
jmp 0x42111c
call fcn.0040ccb4
xor edx, edx
mov eax, dword [ebp - 0x420]
mov word [ebp + eax - 0x414], dx
lea ecx, [ebp - 0x414]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00421020
add esp, 8
mov eax, dword [ebp - 0x424]
add eax, 2
mov dword [ebp - 0x424], eax
mov ecx, 2
imul edx, ecx, 0
mov dword [ebp - 0x428], edx
cmp dword [ebp - 0x428], 0x208
jae 0x42116a
jmp 0x42116f
call fcn.0040ccb4
xor eax, eax
mov ecx, dword [ebp - 0x428]
mov word [ebp + ecx - 0x20c], ax
cmp dword [ebp + 8], 0
je 0x421198
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x20c]
push eax
call fcn.004e97d5
add esp, 8
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x20c]
push edx
call fcn.004e9764
add esp, 8
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4211cc
push 0
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c879
mov esp, ebp
pop ebp
ret
Function at 0x421f10
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 0x421f2a
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 4], 0xffffffff
je 0x421f34
mov eax, 0x1000000
jmp 0x42201e
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.004e97f7
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 0x421f92
movzx ecx, word [ebp - 8]
cmp ecx, 0x2f
je 0x421f92
push 0x69fa44
mov edx, dword [ebp - 0xc]
add edx, 0x244
push edx
call fcn.004e9764
add esp, 8
cmp dword [ebp + 0x10], 1
jne 0x421fd6
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 0x421fba
mov dword [ebp - 0x10], 1
jmp 0x421fc1
mov dword [ebp - 0x10], 0
mov cl, byte [ebp - 0x10]
mov byte [ebp - 1], cl
movzx edx, byte [ebp - 1]
test edx, edx
jne 0x421fd6
mov eax, 0x2000000
jmp 0x42201e
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.004270c0
add esp, 0x10
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x421ffc
mov eax, dword [ebp - 0x1c]
jmp 0x42201e
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00427db0
add esp, 4
mov edx, dword [ebp - 0xc]
mov dword [edx], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
jne 0x42201c
mov eax, 0x200
jmp 0x42201e
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc