joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100047e9
Capabilities:
Write file on windows

Disassembly:
push 0x44
mov eax, 0x10025ed0
call fcn.1000a689
mov edi, ecx
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x50]
push 0xa
sub esp, 0xc
mov dword [esp + 8], 0x40100000
mov dword [esp + 4], 0x3e800000
mov dword [esp], 0x3f400000
push 0x11
call fcn.10001490
and dword [ebp - 4], 0
lea eax, [ebp - 0x50]
push eax
push dword [edi]
mov ecx, edi
call sym.utilities.dll_private:_void___thiscall_pugi::xml_document::_build_str_map_class_pugi::xml_node__class_SOUI::SMap_class_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits___int__class_SOUI::CElementTraits_class_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits____class_SOUI::CElementTraits_int____const
lea eax, [ebp - 0x50]
push eax
call fcn.10004553
mov ecx, dword [ebp - 0x4c]
xor ebx, ebx
push esi
inc ebx
mov dword [ebp - 0x14], eax
push 0x10
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x6c6d7873
push ebx
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ecx
call fcn.10012d92
lea eax, [ebp - 0x50]
push eax
push esi
call fcn.100048f9
add esp, 0x1c
lea eax, [ebp - 0x50]
mov ecx, edi
push esi
push dword [edi]
push eax
call sym.utilities.dll_private:_void___thiscall_pugi::xml_document::_save_bin_class_SOUI::SMap_class_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits___int__class_SOUI::CElementTraits_class_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits____class_SOUI::CElementTraits_int___const___class_pugi::xml_node__struct__iobuf__
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], ebx
call fcn.100038c6
call fcn.1000a644
ret 4

Function at 0x1000488b
Capabilities:
Write file on windows

Disassembly:
push 4
mov eax, 0x10025efb
call fcn.1000a655
mov edi, dword [ebp + 8]
push dword [edi + 4]
call fcn.100060f6
and dword [ebp + 8], 0
mov ebx, eax
pop ecx
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call sym.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_wchar_t_const__
mov esi, dword [ebp - 0x10]
cmp dword [esi - 8], 0
je 0x100048cd
push dword [ebp + 0xc]
mov ecx, edi
call fcn.100032e7
mov eax, dword [eax + 4]
mov dword [ebp + 8], eax
push dword [ebp + 0x10]
lea eax, [ebp + 8]
push ebx
push 1
push eax
call fcn.10012d92
add esp, 0x10
and dword [ebp - 4], 0
lea ecx, [esi - 0xc]
cmp ecx, dword [0x10036028]
je 0x100048f3
call fcn.10003785
call fcn.1000a62f
ret

Function at 0x100048f9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push edi
call fcn.10002e2a
mov edi, eax
test edi, edi
je 0x10004936
push esi
mov ecx, dword [ebp + 0xc]
mov esi, edi
push edi
call fcn.10002a6d
push dword [esi]
mov edi, eax
call fcn.10012e2a
push dword [ebp + 8]
inc eax
push eax
push 2
push dword [esi]
call fcn.10012d92
add esp, 0x14
test edi, edi
jne 0x1000490c
pop esi
pop edi
pop ebp
ret
Function at 0x10006688
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push 0x100275e4
push dword [ebp + 0xc]
mov dword [ebp - 4], ecx
mov dword [edi], 4
mov dword [edi + 4], esi
mov dword [edi + 8], esi
call fcn.1000fdf0
mov ebx, eax
mov dword [ebp + 0xc], ebx
pop ecx
pop ecx
test ebx, ebx
jne 0x100066c7
mov dword [edi], 2
mov eax, edi
jmp 0x10006721
push 2
push esi
push ebx
call fcn.10012556
push ebx
call fcn.10012b4f
push 0
push 0
push ebx
mov esi, eax
call fcn.10012556
push esi
call fcn.1000fc4c
push dword [ebp + 0xc]
mov ebx, eax
push esi
push 1
push ebx
call fcn.100121d1
push dword [ebp + 0xc]
call fcn.10011f5a
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x10]
add esp, 0x34
push esi
push ebx
push eax
call sym.utilities.dll_public:_struct_pugi::xml_parse_result___thiscall_pugi::xml_document::load_bin_char_const___int_
mov esi, eax
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.1000fc47
mov eax, dword [ebp + 8]
pop ecx
and dword [eax], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x1000672a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push 0x100275e8
push dword [ebp + 0xc]
mov dword [ebp - 4], ecx
mov dword [edi], 4
mov dword [edi + 4], esi
mov dword [edi + 8], esi
call fcn.1000fdd9
mov ebx, eax
mov dword [ebp + 0xc], ebx
pop ecx
pop ecx
test ebx, ebx
jne 0x10006769
mov dword [edi], 2
mov eax, edi
jmp 0x100067c3
push 2
push esi
push ebx
call fcn.10012556
push ebx
call fcn.10012b4f
push 0
push 0
push ebx
mov esi, eax
call fcn.10012556
push esi
call fcn.1000fc4c
push dword [ebp + 0xc]
mov ebx, eax
push esi
push 1
push ebx
call fcn.100121d1
push dword [ebp + 0xc]
call fcn.10011f5a
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x10]
add esp, 0x34
push esi
push ebx
push eax
call sym.utilities.dll_public:_struct_pugi::xml_parse_result___thiscall_pugi::xml_document::load_bin_char_const___int_
mov esi, eax
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.1000fc47
mov eax, dword [ebp + 8]
pop ecx
and dword [eax], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1000697f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
push edi
xor edi, edi
test ebx, ebx
jne 0x100069a2
mov eax, dword [ebp + 8]
mov dword [eax + 8], edi
mov dword [eax], 1
mov dword [eax + 4], edi
jmp 0x10006a3f
push esi
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], edi
push eax
push ebx
call fcn.10005e41
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x100069c5
push ebx
call fcn.10011f5a
mov eax, dword [ebp + 8]
mov dword [eax], esi
jmp 0x10006a1b
mov esi, dword [ebp + 0x10]
xor eax, eax
inc eax
test esi, esi
cmovne eax, esi
push eax
call dword [section..data]
mov dword [ebp - 4], eax
pop ecx
push ebx
test eax, eax
jne 0x100069f0
call fcn.10011f5a
mov eax, dword [ebp + 8]
mov dword [eax], 3
jmp 0x10006a1b
push esi
push 1
push eax
call fcn.100121d1
push ebx
mov esi, eax
call fcn.10011f5a
add esp, 0x14
cmp esi, dword [ebp + 0x10]
je 0x10006a24
push dword [ebp - 4]
call dword [0x10036004]
mov eax, dword [ebp + 8]
mov dword [eax], 2
pop ecx
mov dword [eax + 8], edi
mov dword [eax + 4], edi
jmp 0x10006a3e
push dword [ebp + 0x18]
mov ecx, dword [ebp + 0xc]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 4]
push dword [ebp + 8]
call sym.utilities.dll_public:_struct_pugi::xml_parse_result___thiscall_pugi::xml_document::load_buffer_inplace_own_void___unsigned_int__unsigned_int__enum_pugi::xml_encoding_
mov eax, dword [ebp + 8]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1001d1da
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1001d059
Function at 0x406de0
Capabilities:
Hide graphical window

Disassembly:
push 0
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80
push eax
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_SetWindowLongA
push 5
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x40ed50
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x40eae0
mov ebx, 0xdbb9bb81
call fcn.0040ed78
sub ecx, ecx
sub ecx, ecx
xor dword [eax], edi
add ebx, ecx
add eax, 1
add ebx, ebx
cmp eax, edx
jne fcn.0040ed50
sub ecx, ecx
ret

Function at 0x4ca253
Capabilities:
Encode data using xor

Disassembly:
push 0x4c9fca
pop eax
and edi, ecx
call fcn.004ca282
sub ecx, ecx
sub ecx, ecx
mov edi, ecx
xor dword [edx], eax
add ecx, 0x81199352
or ecx, ecx
inc edx
sub edi, ecx
cmp edx, esi
jne fcn.004ca253
add ecx, 0x4a141637
ret

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret
Function at 0x4bae00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d24af
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
push edi
mov edi, ecx
mov dword [esp + 8], 0
lea eax, [esp + 0xc]
mov dword [esp + 0x24], 1
push eax
call dword [0x4d3464]
mov esi, dword [esp + 0x30]
test esi, esi
je 0x4bae43
mov eax, dword [esi]
jmp 0x4bae45
xor eax, eax
mov ecx, dword [edi]
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x38]
push edx
push eax
push edi
call dword [ecx + 0x20]
test eax, eax
jge 0x4bae66
push 0x5002a8
push edi
push eax
call fcn.004369b7
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov eax, edi
mov word [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [eax], ecx
mov ecx, dword [esp + 0x14]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x18]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
test esi, esi
mov byte [esp + 0x24], 0
je 0x4baed3
lea eax, [esi + 8]
push eax
call dword [fcn.004d3424]
test eax, eax
jne 0x4baed3
mov eax, dword [esi]
test eax, eax
je 0x4baeba
push eax
call dword [0x4d346c]
mov eax, dword [esi + 4]
test eax, eax
je 0x4baeca
push eax
call fcn.004bcffc
add esp, 4
push esi
call fcn.004bcffc
add esp, 4
mov ecx, dword [esp + 0x1c]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc

Function at 0x4bb640
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x58], ecx
mov eax, 1
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x40287f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x40288e
pop dword [ebp - 0x10]
mov eax, 0x40288e
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0x5b94e512
sub dword [ebp - 0x20], 0xd429fc7
mov dword [ebp - 0x1c], 0xd6cf20c9
sub dword [ebp - 0x1c], 0xa49bd484
mov dword [ebp - 0x18], 0x652929d5
sub dword [ebp - 0x18], 0x18dce5a7
mov dword [ebp - 0x14], 0xd27b26bc
sub dword [ebp - 0x14], 0xd27b26bc
lea eax, [ebp - 0x20]
push eax
mov eax, 0xe1fbdae1
sub eax, 0xe1bb6a7d
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0xb2df3a4b
add dword [ebp - 0x20], 0xc1932f0b
mov dword [ebp - 0x1c], 0xbae2e2ec
add dword [ebp - 0x1c], 0x86897e89
mov dword [ebp - 0x18], 0x1e1e64e1
add dword [ebp - 0x18], 0x4551078b
mov dword [ebp - 0x14], 0xf1120d14
sub dword [ebp - 0x14], 0xf1120d14
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, 0xbedd7648
add eax, 0x4162fa60
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x3a942
push 0
call eax
mov ecx, 0x57ee
xor esi, esi
add esi, eax
mov edi, 0x410000
add edi, dword [ebp - 0x10]
mov ebx, 0x8752c55f
sub dword [ebp - 8], 0x22d7d0a5
mov edx, dword [edi]
sub dword [ebp - 0xc], esi
xor edx, ebx
sub dword [ebp - 4], ecx
mov dword [esi], edx
mov dword [ebp - 0xc], 0x5238b31a
add esi, 0x23539993
sub esi, 0x2353998f
add edi, 0xb8d47ac3
add edi, 0x472b8541
loop 0x40299b
add eax, 0x48405709
sub eax, 0x483f047e
mov ebx, eax
add eax, 0x329bd2e0
add eax, 0xcd642d25
mov ecx, 0x16f99b9
add ecx, 0xfed06647
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x404a10
Capabilities:
Encode data using base64

Disassembly:
push ebp
push edi
mov edi, dword [esp + 0x14]
xor ebp, ebp
test edi, edi
jle 0x404b0f
mov ecx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x14]
mov edx, dword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
xor eax, eax
mov al, byte [esi]
shr eax, 2
inc ecx
cmp edi, 2
mov al, byte [eax + edx]
mov byte [ecx - 1], al
jle 0x404a92
mov dl, byte [esi]
xor eax, eax
mov al, byte [esi + 1]
and edx, 3
shl edx, 4
shr eax, 4
or edx, eax
mov eax, dword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov dl, byte [edx + eax]
mov byte [ecx - 1], dl
mov al, byte [esi + 1]
xor edx, edx
and eax, 0xf
mov dl, byte [esi + 2]
shl eax, 2
shr edx, 6
or eax, edx
mov edx, dword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov al, byte [eax + edx]
mov byte [ecx - 1], al
mov dl, byte [esi + 2]
mov eax, dword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
and edx, 0x3f
mov dl, byte [edx + eax]
mov byte [ecx], dl
jmp 0x404af4
mov edx, edi
dec edx
je 0x404ad8
dec edx
jne 0x404af5
mov al, byte [esi]
xor edx, edx
mov dl, byte [esi + 1]
and eax, 3
shl eax, 4
shr edx, 4
or eax, edx
mov edx, dword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov al, byte [eax + edx]
mov byte [ecx - 1], al
mov dl, byte [esi + 1]
xor eax, eax
and edx, 0xf
mov al, byte [esi + 2]
shl edx, 2
shr eax, 6
or edx, eax
mov eax, dword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov dl, byte [edx + eax]
mov byte [ecx], dl
jmp 0x404af0
mov al, byte [esi]
mov edx, dword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
and eax, 3
shl eax, 4
inc ecx
mov al, byte [eax + edx]
mov byte [ecx - 1], al
mov byte [ecx], 0x3d
inc ecx
mov byte [ecx], 0x3d
inc ecx
sub edi, 3
add esi, 3
add ebp, 4
test edi, edi
jg 0x404a29
pop esi
mov eax, ebp
pop edi
mov byte [ecx], 0
pop ebp
ret
mov ecx, dword [esp + 0xc]
mov eax, ebp
pop edi
pop ebp
mov byte [ecx], 0
ret
Function at 0x404b20
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x208
push ebp
mov ebp, dword [esp + 0x210]
test ebp, ebp
push esi
je 0x404c3e
mov eax, dword [esp + 0x218]
test eax, eax
jle 0x404c3e
mov esi, dword [esp + 0x21c]
test esi, esi
je 0x404c3e
mov edx, dword [esp + 0x220]
test edx, edx
jle 0x404c3e
push ebx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x114]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + eax + 0x10], al
inc eax
cmp eax, 0x100
jb 0x404b87
xor eax, eax
xor ecx, ecx
cmp eax, edx
jne 0x404b9d
xor eax, eax
mov bl, byte [eax + esi]
inc eax
mov byte [esp + ecx + 0x114], bl
inc ecx
cmp ecx, 0x100
jb 0x404b97
xor ecx, ecx
xor eax, eax
mov dl, byte [esp + eax + 0x10]
mov bl, byte [esp + eax + 0x114]
add ecx, edx
add ebx, ecx
and ebx, 0xff
inc eax
mov ecx, ebx
cmp eax, 0x100
mov bl, byte [esp + ecx + 0x10]
mov byte [esp + eax + 0xf], bl
mov byte [esp + ecx + 0x10], dl
jb 0x404bb5
mov edx, dword [esp + 0x220]
xor edi, edi
xor esi, esi
xor eax, eax
test edx, edx
jbe 0x404c31
inc esi
and esi, 0xff
mov cl, byte [esp + esi + 0x10]
mov bl, cl
add ebx, edi
and ebx, 0xff
mov edi, ebx
mov bl, byte [esp + edi + 0x10]
mov byte [esp + esi + 0x10], bl
mov byte [esp + edi + 0x10], cl
mov bl, byte [esp + esi + 0x10]
add ebx, ecx
and ebx, 0xff
mov cl, byte [esp + ebx + 0x10]
mov bl, byte [eax + ebp]
xor bl, cl
mov byte [eax + ebp], bl
inc eax
cmp eax, edx
jb 0x404bf1
pop edi
pop ebx
pop esi
mov al, 1
pop ebp
add esp, 0x208
ret
pop esi
xor al, al
pop ebp
add esp, 0x208
ret

Function at 0x404e40
Capabilities:
Get mac address on windows

Disassembly:
push ecx
lea eax, [esp]
push esi
push eax
push 0
mov dword [esp + 0xc], 0
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, 0x6f
jne 0x404e90
mov eax, 0xcccccccd
mul dword [esp + 4]
shr edx, 9
lea ecx, [edx + edx*4]
shl ecx, 7
push ecx
call sub.MFC42.DLL_operatornew
add esp, 4
lea edx, [esp + 4]
mov esi, eax
push edx
push esi
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
je 0x404ea3
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0xc]
xor eax, eax
pop esi
mov dword [ecx], eax
mov word [ecx + 4], ax
xor al, al
pop ecx
ret 4
mov eax, dword [esp + 0xc]
lea edx, [esi + 0x194]
push esi
mov ecx, dword [edx]
mov dword [eax], ecx
mov dx, word [edx + 4]
mov word [eax + 4], dx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov al, 1
pop esi
pop ecx
ret 4
Function at 0x4053c0
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
sub esp, 0x404
push esi
push edi
push 0
push 0
push 0
push 0
push str.Microsoft_Internet_Explorer
call dword [sym.imp.WININET.dll_InternetOpenA]
mov esi, eax
test esi, esi
jne 0x4053ec
pop edi
xor al, al
pop esi
add esp, 0x404
ret
mov eax, dword [esp + 0x410]
push 0
push 0x80000000
push 0
push 0
push eax
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov edi, eax
test edi, edi
jne 0x40541e
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop edi
xor al, al
pop esi
add esp, 0x404
ret
push ebx
mov ebx, dword [esp + 0x418]
test ebx, ebx
je 0x405456
lea ecx, [esp + 0xc]
lea edx, [esp + 0x10]
push ecx
push 0x400
push edx
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x405456
mov eax, dword [esp + 0xc]
test eax, eax
jbe 0x405456
movsx eax, byte [esp + 0x10]
sub eax, 0x30
mov dword [ebx], eax
push edi
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call edi
push esi
call edi
pop ebx
pop edi
mov al, 1
pop esi
add esp, 0x404
ret

Function at 0x405590
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esp + 8]
neg ecx
sbb ecx, ecx
lea eax, [esi + 0xc]
and ecx, 4
push eax
push ecx
push esi
push 0x405650
push 0
push 0
mov dword [esi + 4], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor edx, edx
mov dword [esi + 8], eax
test eax, eax
setne dl
mov eax, edx
pop esi
ret 4
Function at 0x40159c
Capabilities:
Query or enumerate registry value

Disassembly:
xor ebx, ebx
mov esi, 0x40a304
push esi
push 0x20019
push ebx
push 0x40c300
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401666
mov edi, 0x40a308
mov esi, dword [esi]
mov dword [edi], 0x3c
push edi
push 0x40a1cc
push ebx
push ebx
push 0x40c314
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [edi], 0x104
push edi
push 0x40a5ec
push ebx
push ebx
push 0x40c31c
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [edi]
dec ecx
mov dword [0x40a3cc], ecx
mov dword [edi], 0x11
push edi
push 0x40a7f4
push ebx
push ebx
push 0x40c324
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [edi]
dec ecx
je 0x40162b
mov dword [0x40a3d4], ecx
mov dword [edi], 4
push edi
push section.data
push ebx
push ebx
push 0x40c32c
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [edi], 0x30
push edi
push 0x40a030
push ebx
push ebx
push 0x40c334
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
ret

Function at 0x40171c
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
xor ebx, ebx
push 0x40c300
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, 0x40a304
push esi
push 0x20019
push ebx
push 0x40c2f0
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401784
mov esi, dword [esi]
mov edi, 0x40a30c
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push edi
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [edi]
test eax, eax
jne 0x401784
push 0x40c2f0
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
ret

Function at 0x402900
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov esi, 0x40c368
call fcn.00401d5c
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push 0x40a4e8
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x4029c5
mov dword [0x40a808], eax
push 0
push 0
push 0
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
je 0x4029c5
mov dword [0x40a80c], eax
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x4029c5
mov dword [0x40a810], eax
xor eax, eax
mov dword [0x40a814], eax
push 0
push dword [0x40a808]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x4029c5
mov dword [0x40a814], eax
mov dword [0x40a010], 0x1000
push 0x40a004
push 0
push 0x25
push dword [0x40a2e8]
call dword [sym.imp.USER32.dll_SetMenuItemInfoA]
mov ecx, dword [0x40a3c8]
mov esi, 0x40a4e8
mov edi, 0x40a3e1
inc ecx
rep movsb byte es:[edi], byte [esi]
xor esi, esi
call fcn.00402520
clc
ret
call fcn.00402a30
call fcn.004029e8
mov esi, 0x40c398
call fcn.00402520
mov esi, 0x40c360
call fcn.00401d5c
stc
jmp 0x4029c4
Function at 0x558aa4
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.00558c54
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x558ba2
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x558b45
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x558b88
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x558b5c
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x558b77
test al, 0x40
je 0x558b6e
mov ecx, dword [edi + 0x20]
jmp 0x558b75
test al, 0x80
je 0x558b88
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x558b88
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x558b14
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret