joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40fafa
Capabilities:
Send data

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
push 1
mov eax, dword [edi + 0x26e0]
pop ebx
mov esi, dword [eax + ecx*4]
mov eax, dword [esi + 0x20]
mov dword [esi + 0x28], 2
cmp dword [eax + 4], ebx
je 0x40fb6d
cmp dword [edi + 0x2480], 0
je 0x40fb8f
push dword [esi + 0xc]
and dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp + 8]
push eax
push dword [edi + 0x2484]
push dword [edi + 0x2480]
push dword [esi + 0x1c]
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x40fb5e
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x40fb8f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x40fb93
jmp 0x40fb8f
cmp dword [esi], 0
jne 0x40fb7e
mov eax, dword [esi + 4]
test eax, eax
je 0x40fb7e
mov dword [esi + 0x18], eax
jmp 0x40fb8f
and dword [esi + 0x28], 0
push ebx
push ecx
mov ecx, edi
call fcn.00410ea3
test eax, eax
je 0x40fb93
mov eax, ebx
jmp 0x40fb95
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x4101eb
Capabilities:
Send data

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x26e0]
mov esi, dword [eax + ebx*4]
mov eax, dword [esi + 0x20]
mov dword [esi + 0x28], 6
cmp dword [eax + 4], 1
je 0x41025f
cmp dword [edi + 0x2480], 0
je 0x41028d
push dword [esi + 0xc]
and dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp + 8]
push eax
push dword [edi + 0x2484]
push dword [edi + 0x2480]
push dword [esi + 0x1c]
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x41024d
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x41028d
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x3e5
neg eax
sbb eax, eax
inc eax
jmp 0x410290
cmp dword [esi], 0
jne 0x410270
mov eax, dword [esi + 4]
test eax, eax
je 0x410270
mov dword [esi + 0x18], eax
jmp 0x41028d
push 1
push ebx
mov ecx, edi
mov dword [esi + 0x28], 4
call fcn.00410ea3
test eax, eax
jne 0x41028d
push ebx
mov ecx, edi
call fcn.004109cf
push 1
pop eax
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x41055f
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ecx + 0x26e0]
push ebx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 8]
push esi
push edi
mov esi, dword [eax + ecx*4]
push 0x28
pop ebx
lea edi, [esi + 0x8044]
push ebx
push 0
push edi
call sub.MSVCRT.dll_memset
mov dword [edi], ebx
mov edi, 0x8000
lea ebx, [esi + 0x40]
push edi
push 0
push ebx
call sub.MSVCRT.dll_memset
mov eax, dword [esi + 0x8040]
mov dword [esi + 0x8058], ebx
lea ebx, [esi + 0x805c]
add esp, 0x18
test eax, eax
mov dword [ebx], edi
je 0x4105e4
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
sub ecx, dword [eax + 0x18]
sbb edx, dword [eax + 0x1c]
sub ecx, dword [eax + 8]
sbb edx, dword [eax + 0xc]
add ecx, 1
mov eax, edx
adc eax, 0
ja 0x4105d7
cmp ecx, edi
jbe 0x4105dd
and dword [ebp - 8], 0
jmp 0x410619
mov edi, ecx
mov dword [ebp - 8], eax
jmp 0x410619
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x5d108]
mov edx, dword [eax + 0x5d10c]
cmp ecx, 0xffffffff
jne 0x4105fc
cmp edx, ecx
je 0x41061b
sub ecx, dword [eax + 0x5d118]
sbb edx, dword [eax + 0x5d11c]
ja 0x41060e
cmp ecx, edi
jbe 0x410614
and dword [ebp - 8], 0
jmp 0x410619
mov edi, ecx
mov dword [ebp - 8], edx
mov dword [ebx], edi
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esi + 0x20]
push 1
pop edi
mov dword [esi + 0x28], 9
cmp dword [eax + 4], edi
je 0x410657
push esi
lea eax, [esi + 0x8044]
push edi
push eax
push dword [esi + 0x1c]
call dword [sym.imp.WININET.dll_InternetReadFileExA]
test eax, eax
je 0x41066b
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x410678
push ebx
push dword [ebx]
push dword [esi + 0x8058]
push dword [esi + 0x1c]
call dword [sym.imp.WININET.dll_InternetReadFile]
jmp 0x410648
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x41067c
mov eax, edi
jmp 0x410689
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.004109cf
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x410d29
Capabilities:
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x103c
call fcn.00414800
push ebx
mov ebx, ecx
xor eax, eax
push esi
cmp dword [ebx + 0x2480], eax
push edi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], 0x42a118
je 0x410d56
mov dword [ebp - 4], str.POST
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], eax
mov ax, word [0x42bc4c]
mov esi, dword [ebp + 8]
mov word [ebp - 0x103c], ax
mov ecx, 0x3ff
xor eax, eax
lea edi, [ebp - 0x103a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x14], 0x42a104
lea ecx, [eax + 0x1048]
add eax, 0x48
push ecx
push eax
push 0x42999c
lea eax, [ebp - 0x103c]
push 0x7ff
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
cmp dword [ebx + 0x62ab4], 0
mov eax, 0x8400c300
je 0x410dbf
mov eax, 0x8408c300
mov ecx, dword [esi + 0x20]
cmp dword [ecx + 4], 4
jne 0x410dcd
or eax, 0x803000
push esi
push eax
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x103c]
push str.HTTP_1.1
push eax
push dword [ebp - 4]
push dword [esi + 0x18]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
test eax, eax
mov dword [esi + 0x1c], eax
je 0x410e99
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionW]
lea ecx, [ebp + 8]
push 4
push ecx
push 2
push eax
mov dword [ebp + 8], 0x3a98
call edi
lea eax, [ebp - 4]
push 4
push eax
push 0x41
push dword [esi + 0x1c]
mov dword [ebp - 4], 1
call edi
push 0x28
mov dword [ebp - 8], eax
pop edi
lea eax, [ebp - 0x3c]
push edi
push 0
push eax
call sub.MSVCRT.dll_memset
mov dword [ebp - 0x3c], edi
mov edi, 0xa2d0
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x410e79
push edi
push 0
push ebx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov ecx, dword [ebp - 0xc]
push dword [ebp - 8]
push 0xa2cf
push ebx
push esi
call fcn.00410f70
push ebx
mov dword [ebp - 0x34], ebx
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
mov dword [ebp - 0x30], eax
push esi
push 1
lea eax, [ebp - 0x3c]
push 0
push eax
push dword [esi + 0x1c]
call dword [sym.imp.WININET.dll_HttpSendRequestExW]
test ebx, ebx
mov dword [ebp - 8], eax
je 0x410e99
push ebx
call fcn.0040cc20
pop ecx
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x411531
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 8], edi
jne 0x41169c
lea ebx, [esi + 0x5d128]
mov dword [ebp - 0x18], edi
push ebx
mov dword [ebp - 0x14], edi
call dword [sym.imp.SHLWAPI.dll_PathGetDriveNumberW]
add eax, 0x41
push edi
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x18]
push edi
push eax
lea eax, [ebp - 0x10]
mov word [ebp - 0xe], 0x3a
push eax
mov word [ebp - 0xc], 0x5c
mov word [ebp - 0xa], di
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x4116b7
mov ecx, dword [esi + 0x5d108]
mov eax, dword [esi + 0x5d10c]
cmp ecx, 0xffffffff
jne 0x41159e
cmp eax, ecx
je 0x4115bd
mov edx, dword [ebp - 0x14]
cmp edx, eax
ja 0x4115bd
jb 0x4115ae
mov eax, dword [ebp - 0x18]
cmp eax, ecx
ja 0x4115bd
mov dword [esi + 0x2470], 2
jmp 0x4116b7
push edi
push 0x20
push 4
push edi
push 1
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 8], eax
je 0x4116a1
cmp dword [esi + 0x26fc], edi
je 0x41169c
push dword [esi + 0x26f4]
lea ebx, [esi + 0x26ec]
mov ecx, ebx
push dword [ebx + 4]
call fcn.004128c8
mov ecx, esi
call fcn.0041192d
test eax, eax
jne 0x41169c
cmp dword [esi + 0x2468], edi
lea eax, [esi + 0x2468]
ja 0x411622
mov dword [eax], 5
push 0xa
pop ecx
cmp dword [eax], ecx
jbe 0x41162b
mov dword [eax], ecx
mov eax, dword [esi + 0x5d108]
mov ecx, dword [esi + 0x5d10c]
sub eax, 1
mov dword [esi + 0x5cfc8], edi
mov dword [esi + 0x5cfd0], eax
lea eax, [esi + 0x5cfc0]
sbb ecx, edi
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
mov dword [esi + 0x5cfd4], ecx
push eax
mov ecx, ebx
mov dword [esi + 0x5cfcc], edi
call fcn.004127ef
mov eax, dword [esi + 0x5d108]
mov edx, dword [esi + 0x5d10c]
push 0x20
pop ecx
call fcn.00414bb0
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push edi
push eax
push dword [esi + 0x5d108]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push 1
pop eax
jmp 0x4116b9
mov dword [esi + 0x2470], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x2474], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x411784
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov ax, word [0x42bc4c]
push ebx
push esi
mov esi, ecx
push edi
mov word [ebp - 0x210], ax
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20e]
and dword [ebp - 4], 0
and dword [ebp - 8], 0
push str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call dword [sym.imp.MSVCRT.dll_wcslen]
mov ebx, eax
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
shl ebx, 1
pop ecx
mov eax, ebx
push 2
push 0
neg eax
push eax
push dword [esi + 8]
call edi
lea eax, [ebp - 4]
push 0
push eax
lea eax, [ebp - 0x210]
push ebx
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp ebx, dword [ebp - 4]
jne 0x411851
lea eax, [ebp - 0x210]
push str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
pop ecx
test eax, eax
pop ecx
jne 0x411851
xor ebx, ebx
push 1
push ebx
push 0xfffffffffffffffc
pop eax
sub eax, dword [ebp - 4]
push eax
push dword [esi + 8]
call edi
lea eax, [ebp - 4]
push ebx
push eax
lea eax, [ebp - 8]
push 4
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
add eax, ecx
push 1
neg eax
push ebx
push eax
push dword [esi + 8]
call edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x411856
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 8], ebx
mov eax, dword [esi + 0x26f0]
cmp eax, ebx
jne 0x411874
mov dword [ebp - 4], ebx
jmp 0x411882
mov ecx, dword [esi + 0x26f4]
sub ecx, eax
sar ecx, 2
mov dword [ebp - 4], ecx
push 2
push ebx
push ebx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 4], ebx
je 0x411920
push edi
lea eax, [ebp - 8]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
push eax
lea eax, [ebp - 4]
push 4
push eax
push dword [esi + 8]
call edi
mov dword [ebp - 0xc], 4
mov eax, dword [esi + 0x26f0]
test eax, eax
je 0x4118ec
mov ecx, dword [esi + 0x26f4]
sub ecx, eax
sar ecx, 2
cmp ebx, ecx
jae 0x4118ec
lea eax, [ebp - 8]
push 0
push eax
mov eax, dword [esi + 0x26f0]
push 0x20
push dword [eax + ebx*4]
push dword [esi + 8]
call edi
add dword [ebp - 0xc], 0x20
inc ebx
jmp 0x4118b6
mov eax, dword [ebp - 0xc]
push 0
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push 4
push eax
push dword [esi + 8]
call edi
mov ebx, str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
push ebx
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
lea ecx, [ebp - 8]
push 0
shl eax, 1
push ecx
push eax
push ebx
push dword [esi + 8]
call edi
pop edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop esi
pop ebx
leave
ret
Function at 0x41192d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov ax, word [0x42bc4c]
push ebx
push esi
mov ebx, ecx
push edi
mov word [ebp - 0x224], ax
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x222]
xor esi, esi
rep stosd dword es:[edi], eax
push str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0xc], esi
stosw word es:[edi], ax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.MSVCRT.dll_wcslen]
mov edi, eax
pop ecx
shl edi, 1
mov eax, edi
push 2
neg eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push eax
mov dword [ebp - 8], edi
push dword [ebx + 8]
call esi
lea eax, [ebp - 4]
push 0
push eax
lea eax, [ebp - 0x224]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push eax
push dword [ebx + 8]
call edi
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
jne 0x411aba
lea eax, [ebp - 0x224]
push str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
pop ecx
test eax, eax
pop ecx
jne 0x411aba
push 1
push eax
push 0xfffffffffffffffc
pop eax
sub eax, dword [ebp - 4]
push eax
push dword [ebx + 8]
call esi
lea eax, [ebp - 4]
push 0
push eax
lea eax, [ebp - 0x18]
push 4
push eax
push dword [ebx + 8]
call edi
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
add ecx, eax
push 1
neg ecx
push 0
push ecx
push dword [ebx + 8]
call esi
xor esi, esi
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp - 0xc]
push 4
push eax
push dword [ebx + 8]
call edi
cmp dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
jbe 0x411a88
lea esi, [ebx + 0x5cfd8]
lea ecx, [ebp - 4]
push 0
lea eax, [esi - 0x18]
push ecx
push 0x20
push eax
push dword [ebx + 8]
call edi
xor eax, eax
mov dword [esi - 0x18], eax
mov dword [esi - 0x14], eax
mov ecx, dword [esi]
mov edx, dword [esi + 4]
add dword [esi - 0x10], ecx
adc dword [esi - 0xc], edx
mov dword [esi], eax
mov dword [esi + 4], eax
mov ecx, dword [esi - 8]
sub ecx, dword [esi - 0x10]
mov edx, dword [esi - 4]
sbb edx, dword [esi - 0xc]
add ecx, 1
adc edx, eax
add dword [ebp - 0x14], ecx
lea eax, [esi - 0x18]
lea ecx, [ebx + 0x26ec]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
adc dword [ebp - 0x10], edx
push eax
call fcn.004127ef
inc dword [ebp - 8]
add esi, 0x20
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
jb 0x411a25
mov ecx, dword [ebx + 0x5d108]
mov edx, dword [ebx + 0x5d10c]
sub ecx, dword [ebp - 0x14]
lea eax, [ebx + 0x5d120]
push 1
sbb edx, dword [ebp - 0x10]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov ecx, dword [eax]
mov eax, edx
mov dword [ebx + 0x5d118], ecx
mov dword [ebx + 0x5d11c], eax
pop eax
jmp 0x411abc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x411ac1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov eax, dword [ebx + 0x805c]
mov edi, ecx
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x20]
cmp dword [eax + 4], 1
jne 0x411ae5
mov eax, dword [ebx]
mov dword [ebp + 8], eax
xor esi, esi
cmp dword [edi + 0x26fc], esi
je 0x411b85
mov ecx, edi
call fcn.00411784
mov esi, dword [ebx + 0x8040]
push 0
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0xc]
add ecx, dword [esi + 0x18]
adc eax, dword [esi + 0x1c]
mov edx, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push ecx
push dword [edi + 8]
sar edx, 0x1f
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x411b37
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x411bc6
lea eax, [ebp - 4]
push 0
push eax
and dword [ebp - 4], 0
push dword [ebp + 8]
lea eax, [ebx + 0x40]
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x411bc6
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
jne 0x411bc6
add dword [esi + 0x18], eax
lea eax, [edi + 0x5d118]
adc dword [esi + 0x1c], 0
mov ecx, dword [ebp - 4]
add dword [eax], ecx
push ecx
push ebx
mov ecx, edi
adc dword [eax + 4], 0
call fcn.00411bcf
mov ecx, edi
call fcn.00411856
jmp 0x411bc1
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebx + 0x40]
push dword [ebp + 8]
mov dword [ebp - 4], esi
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x411bc6
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jne 0x411bc6
add dword [edi + 0x5d118], ecx
lea eax, [edi + 0x5d118]
push ecx
push ebx
mov ecx, edi
adc dword [eax + 4], esi
call fcn.00411bcf
push 1
pop eax
jmp 0x411bc8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x41351e
Capabilities:
Hash data with md5

Disassembly:
push esi
xor eax, eax
lea esi, [ecx + 0x5c]
push 0x40
push eax
push esi
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 4], 0x67452301
mov dword [ecx + 8], 0xefcdab89
mov dword [ecx + 0xc], 0x98badcfe
mov dword [ecx + 0x10], 0x10325476
call fcn.00413fc5
mov byte [esi], 0x80
pop esi
ret
Function at 0x4190f9
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
movzx eax, word [ecx + 0x14]
push edi
lea esi, [eax + ecx + 0x18]
cmp ebx, dword [esi + 0xc]
lea edx, [esi + 0xc]
jae 0x41911a
mov eax, ebx
jmp 0x419159
movzx edi, word [ecx + 6]
xor eax, eax
test edi, edi
jbe 0x419156
mov dword [ebp + 0xc], edx
lea edx, [eax + 1]
cmp edx, edi
mov dword [ebp - 4], edx
jne 0x419136
mov edx, dword [ecx + 0x50]
jmp 0x41913c
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + 0x28]
mov dword [ebp + 0x10], edx
mov edx, dword [ebp + 0xc]
cmp ebx, dword [edx]
jb 0x41914b
cmp ebx, dword [ebp + 0x10]
jb 0x41915e
mov eax, dword [ebp - 4]
add dword [ebp + 0xc], 0x28
cmp eax, edi
jb 0x419127
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
lea eax, [eax + eax*4]
lea ecx, [esi + eax*8]
mov eax, dword [esi + eax*8 + 0x14]
sub eax, dword [ecx + 0xc]
add eax, ebx
jmp 0x419159

Function at 0x4193f8
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x4013c0
Capabilities:
Check mutex on windows

Disassembly:
push 0x413138
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp eax, 0xffffffff
mov dword [0x4130e8], eax
je 0x401409
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x401409
mov eax, dword [0x4130e8]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [0x4130e8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4130e8], 0xffffffff
ret

Function at 0x401f00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
xor ebx, ebx
lea eax, [ebx + 0xa1]
push 0xa
and eax, 0xffff
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push edi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp ebx, 1
push ebp
push eax
jne 0x401f4e
push str.root
jmp 0x401f53
push 0x4131f4
call fcn.00401de0
inc ebx
cmp ebx, 2
jl 0x401f10
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x402ef0
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x1350
call fcn.0040e1b0
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push esi
mov esi, ecx
push edi
push 0
mov eax, dword [esi + 0xa8]
push 9
push 0x110a
push eax
call ebx
mov edi, eax
test edi, edi
jne 0x402f27
pop edi
pop esi
pop ebx
add esp, 0x1350
ret
mov ecx, dword [esi + 0xa8]
push edi
push 3
push 0x110a
push ecx
call ebx
test eax, eax
jne 0x402f46
pop edi
pop esi
pop ebx
add esp, 0x1350
ret
push edi
lea ecx, [esi + 0x88]
call sub.MFC42.DLL_CTreeCtrl::GetItemData
mov esi, eax
test esi, esi
jne 0x402f62
pop edi
pop esi
pop ebx
add esp, 0x1350
ret
lea edx, [esp + 0x25c]
push edx
call dword [0x415594]
lea eax, [esp + 0x5c]
push eax
push 0x4146a4
call dword [0x415598]
mov ecx, dword [esi + 0x104]
lea edx, [esp + 0x5c]
push ecx
push esi
lea eax, [esp + 0x264]
push edx
push eax
lea ecx, [esp + 0x16c]
push str._s_s_s__d.cer
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x18
lea edx, [esp + 0x15c]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x403028
lea eax, [esp + 0xc]
push 0
push eax
lea ecx, [esp + 0x364]
push 0x1000
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
push esi
jne 0x403004
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x1350
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x35c]
push edx
push eax
push 0x10001
call dword [sym.imp.CRYPT32.dll_CertCreateCertificateContext]
mov esi, eax
test esi, esi
jne 0x403034
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x1350
ret
mov ecx, 0x12
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov dword [esp + 0x14], 0x48
call sub.MFC42.DLL_AfxGetThread
test eax, eax
je 0x403078
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
test eax, eax
je 0x403078
call sub.MFC42.DLL_AfxGetThread
test eax, eax
je 0x40306f
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
jmp 0x403071
xor eax, eax
mov eax, dword [eax + 0x20]
mov dword [esp + 0x18], eax
mov eax, dword [0x41436c]
mov dword [esp + 0x24], esi
test eax, eax
mov dword [esp + 0x1c], 0x10
je 0x403099
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push edx
call eax
push esi
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x1350
ret
Function at 0x4030b0
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x2324
call fcn.0040e1b0
push ebx
push esi
lea eax, [esp + 0x2c]
push edi
push eax
call dword [0x415594]
lea ecx, [esp + 0x130]
push ecx
push 0x4146a4
call dword [0x415598]
mov edx, dword [esp + 0x2338]
mov ebx, dword [esp + 0x2334]
push edx
lea eax, [esp + 0x134]
push ebx
lea ecx, [esp + 0x38]
push eax
push ecx
lea edx, [esp + 0x240]
push str._s_s_s__d.cer
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x18
lea eax, [esp + 0x230]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40325f
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x1338]
push 0x1000
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
push esi
jne 0x40316b
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x2324
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x1330]
push eax
push ecx
push 0x10001
call dword [sym.imp.CRYPT32.dll_CertCreateCertificateContext]
mov esi, eax
test esi, esi
je 0x40325f
push 0x413298
push 0x10000
push 0
push 0x10001
push 0xa
call dword [sym.imp.CRYPT32.dll_CertOpenStore]
test eax, eax
mov dword [esp + 0xc], eax
je 0x40325f
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x330]
repne scasb al, byte es:[edi]
not ecx
push ecx
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_mbstowcs]
push edx
call ebx
mov edi, 0x4145a0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
lea eax, [esp + 0xb40]
push 0x4145a0
push eax
call ebx
mov eax, dword [esp + 0x2350]
lea ecx, [esp + 0x348]
add esp, 0x18
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x14]
lea edx, [esp + 0xb30]
push ecx
push 0
push 2
push esi
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], 1
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], eax
call dword [sym.imp.CRYPT32.dll_CertSetCertificateContextProperty]
test eax, eax
je 0x40325f
mov edi, dword [esp + 0xc]
push 0
push 3
push esi
push edi
call dword [sym.imp.CRYPT32.dll_CertAddCertificateContextToStore]
test eax, eax
jne 0x40326b
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x2324
ret
push esi
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
push 1
push edi
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x2324
ret