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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x440200]
and dword [ebp - 0x210], 0
xor eax, ebp
push esi
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, dword [sym.imp.MSVCR71.dll_wcscat]
lea eax, [ebp - 0x20c]
push str.ThunderLiveUD_
push eax
call esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0041aa05
lea eax, [ebp - 0x20c]
push 0x433774
push eax
call esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0041aa05
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
mov ecx, edi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0041ef93
leave
ret
Function at 0x415884
Capabilities:
Check if file exists
Delete file

Disassembly:
mov eax, 0x42e0fb
call fcn.0041f1a0
sub esp, 0x12c
cmp byte [ebp + 0x10], 0
push ebx
push esi
push edi
je 0x415941
mov edi, dword [ebp + 8]
cmp dword [edi + 0x18], 0x10
lea esi, [edi + 4]
jb 0x4158b1
mov eax, dword [esi]
jmp 0x4158b3
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x41593d
cmp dword [edi + 0x18], 0x10
jb 0x4158c8
mov eax, dword [esi]
jmp 0x4158ca
mov eax, esi
push 1
push 0x1b6
push 0x20
push eax
lea ecx, [ebp - 0x138]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_ifstream_char__struct_std::char_traits_char__::constructor_char_const___int__int_]
mov ecx, dword [ebp + 0xc]
and dword [ebp - 4], 0
push 2
call fcn.00411e1e
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x138]
push eax
call fcn.004127bb
lea ecx, [ebp - 0x138]
mov ebx, eax
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_ifstream_char__struct_std::char_traits_char__::close_void_]
test ebx, ebx
je 0x415928
mov ecx, dword [ebp + 0xc]
call fcn.00411cc7
cmp dword [edi + 0x18], 0x10
jb 0x41591f
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test ebx, ebx
sete bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x138]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_ifstream_char__struct_std::char_traits_char__::vbase_dtor_void_]
jmp 0x4159a9
xor al, al
jmp 0x4159ab
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 0x10
jb 0x41594f
mov eax, dword [eax + 4]
jmp 0x415952
add eax, 4
xor esi, esi
inc esi
push esi
push 0x1b6
push 0x20
push eax
lea ecx, [ebp - 0xa0]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_ofstream_char__struct_std::char_traits_char__::constructor_char_const___int__int_]
mov ecx, dword [ebp + 0xc]
push 2
mov dword [ebp - 4], esi
call fcn.00411e1e
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0xa0]
push eax
call fcn.0041265e
lea ecx, [ebp - 0xa0]
mov esi, eax
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_ofstream_char__struct_std::char_traits_char__::close_void_]
test esi, esi
sete bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa0]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_ofstream_char__struct_std::char_traits_char__::vbase_dtor_void_]
mov al, bl
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x415dfc
Capabilities:
Delete file

Disassembly:
mov eax, 0x42e1fd
call fcn.0041f1a0
sub esp, 0xe0
mov eax, dword [0x440200]
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, ebp
xor ebx, ebx
cmp dword [esi + 0x14], ebx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
jne 0x415e30
mov eax, 0x132b3a1
jmp 0x415f4c
push str.Global9E5DD253_5DB7_472d_A841_E9320AC1014B
push ebx
lea ecx, [ebp - 0x50]
call fcn.0040edaa
lea eax, [ebp - 0x50]
mov ecx, eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x54], eax
call fcn.0040ee47
push str.patch_info.ben
lea eax, [ebp - 0x2c]
push esi
push eax
mov byte [ebp - 4], 1
call fcn.00401943
add esp, 0xc
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
mov byte [ebp - 4], 3
jae 0x415e81
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x48]
push ecx
push dword [ebp - 0x18]
push eax
call fcn.004112de
mov eax, dword [ebp - 0x44]
add esp, 0xc
cmp dword [ebp - 0x30], 0x10
jae 0x415e9d
lea eax, [ebp - 0x44]
push 1
push 0x1b6
push 0x20
push eax
lea ecx, [ebp - 0xec]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_ifstream_char__struct_std::char_traits_char__::constructor_char_const___int__int_]
cmp dword [ebp - 0x8c], ebx
mov byte [ebp - 4], 4
je 0x415ee6
push 2
mov ecx, edi
call fcn.00411e1e
lea eax, [ebp - 0xec]
push eax
mov ecx, edi
call fcn.004127bb
lea ecx, [ebp - 0xec]
mov esi, eax
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_ifstream_char__struct_std::char_traits_char__::close_void_]
jmp 0x415eeb
mov esi, 0x17d7845
cmp esi, ebx
je 0x415f09
mov ecx, edi
call fcn.00411cc7
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x415f02
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0xec]
mov byte [ebp - 4], 3
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_ifstream_char__struct_std::char_traits_char__::vbase_dtor_void_]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], bl
call fcn.0040ee53
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.0040edf5
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ef93
leave
ret
Function at 0x4179dc
Capabilities:
Create process on windows
Get common file path
Get program files directory
Query or enumerate registry value

Disassembly:
mov eax, 0x42e60d
call fcn.0041f1a0
sub esp, 0x81c
mov eax, dword [0x440200]
push ebx
xor eax, ebp
push esi
push edi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x81c], eax
xor esi, esi
xor eax, eax
mov word [ebp - 0x810], si
mov ecx, 0x1ff
lea edi, [ebp - 0x80e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x820]
push eax
push 1
push esi
push str.http_shellopencommand
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov edi, dword [sym.imp.SHELL32.dll_ShellExecuteW]
jne 0x417b6c
lea eax, [ebp - 0x828]
push eax
lea eax, [ebp - 0x810]
push eax
push esi
push esi
push 0x431b20
push dword [ebp - 0x820]
mov dword [ebp - 0x828], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x820]
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, esi
jne 0x417b6c
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x814]
call fcn.0040d36d
lea ecx, [ebp - 0x814]
mov dword [ebp - 4], esi
call fcn.00417410
push esi
push str..exe
lea ecx, [ebp - 0x814]
call fcn.00409662
mov ebx, eax
cmp ebx, 0xffffffff
je 0x417b5e
lea ecx, [ebp - 0x818]
call fcn.00403f9d
push ebx
push 0x20
lea ecx, [ebp - 0x814]
mov byte [ebp - 4], 1
call fcn.0041723a
cmp eax, 0xffffffff
je 0x417b16
push eax
lea eax, [ebp - 0x824]
push eax
lea ecx, [ebp - 0x814]
call fcn.0041736e
push eax
lea ecx, [ebp - 0x818]
mov byte [ebp - 4], 2
call fcn.00404b93
mov ecx, dword [ebp - 0x824]
add ecx, 0xfffffff0
call fcn.0040361a
jmp 0x417b28
lea eax, [ebp - 0x814]
push eax
lea ecx, [ebp - 0x818]
call fcn.00404b93
mov ebx, dword [ebp - 0x818]
push 1
push esi
push dword [ebp - 0x81c]
push ebx
push esi
push esi
call edi
cmp eax, 0x20
lea ecx, [ebx - 0x10]
jle 0x417b59
call fcn.0040361a
mov ecx, dword [ebp - 0x814]
add ecx, 0xfffffff0
call fcn.0040361a
jmp 0x417bcb
call fcn.0040361a
mov ecx, dword [ebp - 0x814]
add ecx, 0xfffffff0
call fcn.0040361a
push 0x800
lea eax, [ebp - 0x810]
push esi
push eax
call sub.MSVCR71.dll_memset
add esp, 0xc
push esi
push 0x26
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x417bcb
push 0x40
lea eax, [ebp - 0x810]
push str.Internet_Exploreriexplore.exe
push eax
call dword [sym.imp.MSVCR71.dll_wcsncat]
add esp, 0xc
push 1
push esi
push dword [ebp - 0x81c]
lea eax, [ebp - 0x810]
push eax
push str.open
push esi
call edi
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ef93
leave
ret
Function at 0x4194d3
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push 0x3c
xor ebx, ebx
lea eax, [ebp - 0x3c]
push ebx
push eax
call sub.MSVCR71.dll_memset
add esp, 0xc
cmp byte [ebp + 0x14], bl
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
je 0x41950d
call fcn.004191d0
test al, al
mov dword [ebp - 0x30], str.runas
jne 0x419514
mov dword [ebp - 0x30], str.open
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 8
jb 0x419522
mov eax, dword [eax + 4]
jmp 0x419525
add eax, 4
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x18], 8
jb 0x419536
mov eax, dword [eax + 4]
jmp 0x419539
add eax, 4
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x18], 8
jb 0x41954a
mov eax, dword [eax + 4]
jmp 0x41954d
add eax, 4
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x20], 5
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x38], 0x400
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
pop ebx
je 0x419574
xor eax, eax
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
leave
ret

Function at 0x41980b
Capabilities:
Compare security identifiers

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
test eax, eax
je 0x41984b
mov esi, dword [esp + 0x10]
cmp dword [esi + 4], 0
je 0x41984b
mov ebx, dword [sym.imp.ADVAPI32.dll_IsValidSid]
push eax
call ebx
test eax, eax
je 0x41984b
push dword [esi + 4]
call ebx
test eax, eax
je 0x41984b
push dword [esi + 4]
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
jmp 0x41984d
xor al, al
pop edi
pop esi
pop ebx
ret 4
Function at 0x41f418
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x434ae0
call fcn.0041f124
xor edi, edi
mov dword [ebp - 0x20], edi
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call ebx
cmp word [eax], 0x5a4d
jne 0x41f458
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41f458
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x41f470
cmp eax, 0x20b
je 0x41f45d
mov dword [ebp - 0x1c], edi
jmp 0x41f484
cmp dword [ecx + 0x84], 0xe
jbe 0x41f458
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x41f47e
cmp dword [ecx + 0x74], 0xe
jbe 0x41f458
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x440764], 0xffffffff
or dword [0x440768], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x440730]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x44072c]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x440760], eax
call fcn.0041f78a
call fcn.0041f833
cmp dword [0x440220], edi
jne 0x41f4e4
push 0x41f830
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.0041f818
push 0x44002c
push 0x440028
call sub.MSVCR71.dll__initterm
push 0x41f7ce
call fcn.0041f0b0
mov eax, dword [0x440728]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x440724]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___wgetmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, edi
jge 0x41f538
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x440024
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x41f562
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x41f61c
mov dword [ebp - 0x24], esi
mov ax, word [esi]
cmp ax, 0x20
ja 0x41f5d1
cmp ax, di
je 0x41f578
cmp dword [ebp - 0x20], edi
jne 0x41f5d1
mov ax, word [esi]
cmp ax, di
je 0x41f58d
cmp ax, 0x20
ja 0x41f58d
inc esi
inc esi
mov dword [ebp - 0x24], esi
jmp 0x41f578
mov dword [ebp - 0x58], edi
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x58], 1
je 0x41f5a9
movzx eax, word [ebp - 0x54]
jmp 0x41f5ac
push 0xa
pop eax
push eax
push esi
push edi
push edi
call ebx
push eax
call fcn.00402b20
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], edi
jne 0x41f5c9
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x41f616
cmp ax, 0x22
jne 0x41f5e2
xor eax, eax
cmp dword [ebp - 0x20], edi
sete al
mov dword [ebp - 0x20], eax
inc esi
inc esi
jmp 0x41f562
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0041f15f
ret
Function at 0x426645
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax], 0
and dword [eax + 4], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
ret

Function at 0x42737b
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x440200]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
test eax, eax
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x18], eax
je 0x4274ab
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x4274aa
cmp edi, 0x40
jbe 0x4273c5
lea ecx, [ebp - 0x14]
push ecx
push edi
push eax
call fcn.0042722a
add esp, 0xc
push 0x10
lea eax, [ebp - 0x14]
pop edi
mov dword [ebp - 0x18], eax
push ebx
push 0x40
lea eax, [esi + 0x58]
push 0x36
push eax
call sub.MSVCR71.dll_memset
push 0x40
lea ebx, [esi + 0x98]
push 0x5c
push ebx
call sub.MSVCR71.dll_memset
add esp, 0x18
test edi, edi
jbe 0x4273fd
mov ecx, dword [ebp - 0x18]
mov eax, ebx
mov dl, byte [ecx]
xor byte [eax - 0x40], dl
mov dl, byte [ecx]
xor byte [eax], dl
inc ecx
inc eax
dec edi
jne 0x4273ef
push esi
call fcn.00426645
add esp, 4
lea eax, [esi + 0x58]
test eax, eax
push 0x40
pop ebx
mov dword [ebp - 0x18], eax
je 0x427499
mov ecx, dword [esi]
mov edi, ecx
push ebx
and edi, 0x3f
pop eax
add ecx, ebx
sub eax, edi
cmp ecx, ebx
mov dword [ebp - 0x1c], eax
mov dword [esi], ecx
jae 0x427430
inc dword [esi + 4]
test edi, edi
je 0x427466
cmp eax, 0x40
ja 0x427466
push eax
push dword [ebp - 0x18]
lea eax, [edi + esi + 0x18]
push eax
call sub.MSVCR71.dll_memcpy
add esp, 0xc
lea eax, [esi + 0x18]
mov ecx, esi
call fcn.0042666d
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x18], eax
push 0x40
pop ebx
sub ebx, eax
xor edi, edi
cmp ebx, 0x40
jb 0x427484
mov eax, ebx
shr eax, 6
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
mov ecx, esi
call fcn.0042666d
add dword [ebp - 0x18], 0x40
sub ebx, 0x40
dec dword [ebp - 0x1c]
jne 0x42746e
test ebx, ebx
jbe 0x427499
push ebx
push dword [ebp - 0x18]
lea eax, [edi + esi + 0x18]
push eax
call sub.MSVCR71.dll_memcpy
add esp, 0xc
push 0x10
lea eax, [ebp - 0x14]
push 0
push eax
call sub.MSVCR71.dll_memset
add esp, 0xc
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0041ef93
leave
ret
Function at 0x42871e
Capabilities:
Get file size

Disassembly:
push ebp
lea ebp, [esp - 0x200]
sub esp, 0x280
mov eax, dword [0x440200]
push esi
mov esi, dword [ebp + 0x208]
push edi
xor eax, ebp
xor edi, edi
cmp esi, edi
mov dword [ebp + 0x1fc], eax
je 0x4287f9
cmp word [esi], di
je 0x4287f9
lea eax, [ebp - 0x80]
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x428782
test dword [ebp - 0x80], 0x10
jne 0x428804
push 1
push edi
push edi
push dword [ebp - 0x64]
call fcn.0041f320
mov ecx, dword [ebp - 0x60]
jmp 0x4287b1
lea eax, [ebp - 0x54]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x4287b9
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test dword [ebp - 0x54], 0x10
jne 0x428804
push 1
push edi
push edi
push dword [ebp - 0x38]
call fcn.0041f320
mov ecx, dword [ebp - 0x34]
xor esi, esi
add eax, ecx
adc edx, esi
jmp 0x428809
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocStringLen
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x428804
push ebx
lea eax, [ebp - 0x5c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, edi
pop ebx
je 0x428804
mov eax, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x58]
jmp 0x428809
push 0x132b3a1
call fcn.004112fb
pop ecx
or edx, 0xffffffff
mov eax, edx
mov ecx, dword [ebp + 0x1fc]
pop edi
xor ecx, ebp
pop esi
call fcn.0041ef93
add ebp, 0x200
leave
ret

Function at 0x4297f6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov eax, 0x40e4
lea ebp, [esp - 0x4064]
call fcn.0041f1f0
mov eax, dword [0x440200]
mov ecx, dword [ebp + 0x4070]
xor eax, ebp
mov dword [ebp + 0x4060], eax
mov eax, dword [ebp + 0x406c]
test eax, eax
push ebx
mov dword [ebp - 0x80], ecx
je 0x4298e6
cmp word [eax], 0
je 0x4298e6
test ecx, ecx
je 0x4298e6
cmp dword [ebp + 0x4074], 0x10
jb 0x4298e6
push 0x435498
push eax
call dword [sym.imp.MSVCR71.dll__wfopen]
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
je 0x4298e6
push esi
lea eax, [ebp - 0x78]
push edi
push eax
call fcn.00426645
lea eax, [ebp - 0x78]
push eax
call fcn.00426645
pop ecx
pop ecx
mov byte [ebp - 0x79], 0
mov esi, 0x4000
push ebx
push esi
lea eax, [ebp + 0x60]
push 1
push eax
call dword [sym.imp.MSVCR71.dll_fread]
mov edi, eax
add esp, 0x10
cmp edi, esi
je 0x4298a0
test byte [ebx + 0xc], 0x20
jne 0x4298c3
test edi, edi
jbe 0x4298b5
push edi
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.00426ff5
add esp, 0xc
cmp edi, esi
jae 0x4298bd
mov byte [ebp - 0x79], 1
cmp byte [ebp - 0x79], 0
je 0x429883
push ebx
call dword [sym.imp.MSVCR71.dll_fclose]
cmp byte [ebp - 0x79], 0
pop ecx
pop edi
pop esi
je 0x4298e6
push dword [ebp - 0x80]
lea eax, [ebp - 0x78]
push eax
call fcn.00427094
pop ecx
pop ecx
push 0x10
pop eax
jmp 0x4298e9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x4060]
xor ecx, ebp
pop ebx
call fcn.0041ef93
add ebp, 0x4064
leave
ret
Function at 0x429cd6
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
and dword [eax], 0
and dword [eax + 4], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax + 0x18], 0xc3d2e1f0
ret

Function at 0x42ba09
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x440200]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
test eax, eax
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
je 0x42bb39
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x42bb38
cmp edi, 0x40
jbe 0x42ba53
lea ecx, [ebp - 0x18]
push ecx
push edi
push eax
call fcn.0042b8b8
add esp, 0xc
push 0x14
lea eax, [ebp - 0x18]
pop edi
mov dword [ebp - 0x1c], eax
push ebx
push 0x40
lea eax, [esi + 0x5c]
push 0x36
push eax
call sub.MSVCR71.dll_memset
push 0x40
lea ebx, [esi + 0x9c]
push 0x5c
push ebx
call sub.MSVCR71.dll_memset
add esp, 0x18
test edi, edi
jbe 0x42ba8b
mov ecx, dword [ebp - 0x1c]
mov eax, ebx
mov dl, byte [ecx]
xor byte [eax - 0x40], dl
mov dl, byte [ecx]
xor byte [eax], dl
inc ecx
inc eax
dec edi
jne 0x42ba7d
push esi
call fcn.00429cd6
add esp, 4
lea eax, [esi + 0x5c]
test eax, eax
push 0x40
pop ebx
mov dword [ebp - 0x1c], eax
je 0x42bb27
mov ecx, dword [esi]
mov edi, ecx
push ebx
and edi, 0x3f
pop eax
add ecx, ebx
sub eax, edi
cmp ecx, ebx
mov dword [ebp - 0x20], eax
mov dword [esi], ecx
jae 0x42babe
inc dword [esi + 4]
test edi, edi
je 0x42baf4
cmp eax, 0x40
ja 0x42baf4
push eax
push dword [ebp - 0x1c]
lea eax, [edi + esi + 0x1c]
push eax
call sub.MSVCR71.dll_memcpy
add esp, 0xc
lea eax, [esi + 0x1c]
mov ecx, esi
call fcn.00429d05
mov eax, dword [ebp - 0x20]
add dword [ebp - 0x1c], eax
push 0x40
pop ebx
sub ebx, eax
xor edi, edi
cmp ebx, 0x40
jb 0x42bb12
mov eax, ebx
shr eax, 6
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
mov ecx, esi
call fcn.00429d05
add dword [ebp - 0x1c], 0x40
sub ebx, 0x40
dec dword [ebp - 0x20]
jne 0x42bafc
test ebx, ebx
jbe 0x42bb27
push ebx
push dword [ebp - 0x1c]
lea eax, [edi + esi + 0x1c]
push eax
call sub.MSVCR71.dll_memcpy
add esp, 0xc
push 0x14
lea eax, [ebp - 0x18]
push 0
push eax
call sub.MSVCR71.dll_memset
add esp, 0xc
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0041ef93
leave
ret
Function at 0x402811
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x402864
call fcn.0042218e
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x402864
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x40285a
xor eax, eax
jmp 0x40297d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x402894
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x402894
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x40297a
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x4028c1
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.0040240a
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x40297a
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x40290a
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x40290a
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x402904
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.0040240a
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x40296a
and dword [ebp + 0xc], 0
jmp 0x40296a
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x40296a
push 0xc
call fcn.004199c9
mov esi, eax
test esi, esi
pop ecx
je 0x40294c
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x40294e
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x402965
push dword [ebp - 8]
call fcn.00417da3
jmp 0x40296a
call fcn.00417d7a
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x4028cf
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc